Duration of milliseconds to convert
A duration string
ms(-3 * 60000); // '-3min'
Convert a duration string to a duration in milliseconds.
If you are very concerned about performance you should use the convertMany function directly.
Duration string to convert
A duration in milliseconds
ms('1d 2h 30min'); // 95400000
Generated using TypeDoc
Convert a given duration of milliseconds to a string that best represents it.
If you are very concerned about performance you should use the convertMany function directly.