Time
The Time registry provides tools to manage and manipulate dates, times, and time-related calculations, making it easy to handle time-based data in your projects.
date
The function formats a given date or the current time into a specified format string.
Signature
Must version
dateInZone
The function formats a given date or the current time into a specified format string for a specified timezone.
Signature
Must version
duration
The function converts a given number of seconds into a human-readable duration string.
Signature
Must version
dateAgo
The function calculates the time elapsed since a given date.
Signature
Must version
now
The function returns the current time.
Signature
Must version
unixEpoch
The function returns the Unix epoch timestamp for a given date.
Signature
Must version
dateModify / mustDateModify
The function adjusts a given date by a specified duration, returning the modified date. If the duration format is incorrect, it returns the original date without any changes, in case of must version, an error are returned.
Signature
Must version
durationRound
The function rounds a duration to the nearest significant time unit, such as years or seconds.
Signature
Must version
htmlDate
The function formats a date into the standard HTML date format (YYYY-MM-DD).
Signature
Must version
htmlDateInZone
The function formats a date into the standard HTML date format (YYYY-MM-DD) based on a specified timezone.
Signature
Must version
Last updated