StaticdeserializeStaticfromStaticfromStaticfromStaticfromStaticfromStaticfromStaticfromCreate a TimeSpan from string
// Will be 5000 milliseconds.
TimeSpan.fromStr("5s").toMilliseconds()
Under the hood, this method leverages @lukeed/ms package to convert various time formats into milliseconds. Refer to its documentation for a complete list of supported time formats and units.
Staticfrom
The
TimeSpanclass is used for representing time interval.TimeSpancannot be negative.IMPORT_PATH:
"@daiso-tech/core/time-span"