Parse Duration from string

Code



Compilation output:

/d107/f717.d(19): Error: Escape String literal \u03bc is deprecated, use double quoted string literal "\u03bc" instead /d107/f717.d(19): Error: basic type expected, not "\u03bc" /d107/f717.d(19): Error: type only allowed if anonymous enum and no enum type /d107/f717.d(19): Error: if type, there must be an initializer /d107/f717.d(19): Error: found '"\u03bc"' when expecting ',' /d107/f717.d(48): Error: Escape String literal \u03bc is deprecated, use double quoted string literal "\u03bc" instead /d107/f717.d(48): Error: found 's' when expecting ':' /d107/f717.d(48): Error: found ':' instead of statement


Application arguments:

'12 hours, 30 minutes' '1w2d20m12h5m2s'

Paste info


Author: Guest
Views: 630
Private: no
Expires: Never
Uploaded: 20.08.13 19:39
Votes: 0

Compilation


Compiler: DMD 2.076.1 ( 2.076.1 )
Pointer size: m64

Actions