Skip to content

TimeComponent.valueFromString method

TimeComponent › valueFromString

Converts a string to a time.

Signature:

valueFromString(str: string): moment.Duration

Parameters:

ParameterTypeDescription
strstringThe string to convert.

Returns: moment.DurationThe date.