parseDurationNanos

parseDurationNanos converts a string representing a Duration to nanoseconds.

Syntax

Parameters

ParameterTypeDescription
sstring

The string to be converted.

Time duration strings can be formatted as [-]PT[-]hh:mm:[ss.nnnnnnnnn] or as a Duration string formatted as [-]PnDTnHnMn.nS.

Returns

Nanoseconds representation of the time string.

Examples