Skip to content

DateTimeUtils

do- edited this page Aug 27, 2023 · 1 revision

This helper module exports lightweight functions related to date and time formatting.

toYMD

This synchronous function takes the string representing the number of days since 1900-01-01 and returns the YYYY-MM-DD string representing the corresponding date.

For any NaN argument, null is returned.

toHMS

This synchronous function takes the string representing the fraction of day as a non negative float number less than '1.0' and returns the HH:MI:SS string representing the corresponding time.

For any NaN argument, null is returned.

Clone this wiki locally