parseTimeSpan

private fnDuration parseTimeSpan(const(char)[] raw) pure @safe

Parse an SDL timespan literal to core.time.Duration.

Format: (d:)hh:mm:ss(.xxx); fractional seconds keep millisecond resolution; a leading '-' negates the whole duration.

Parameters

rawThe literal text

Returns

The parsed duration.

Throws

Exception on malformed input.