Core Infrastructure
Time Utilities
Date formatting, epoch conversion, and timezone helpers.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Date formatting, epoch conversion, and timezone helpers.
| Function | Purpose |
|---|---|
| formatTimeRange(start, end) | Formats an epoch range into “6:00 AM - 8:00 AM” display string |
| toLocalEpoch(date) | Converts a Date object to epoch milliseconds in the local timezone |
| fromEpoch(ms) | Converts epoch milliseconds to a dayjs object |
| isToday(epoch) | Checks if an epoch timestamp falls on the current calendar day |
| getRelativeDay(epoch) | Returns “Today”, “Tomorrow”, or the formatted date string |