javascript
Duration with mandatory 'm'
Parses date-time duration strings +-1y2M3d4h5m6s, where 'm' is the dafault.
Like this, where {} contains list of capturing groups:
21 - parsed as {,,,,21,}
2y2s - parsed as {2,,,,,2}
Submitted by mbonaci - 8 years ago