Unix Epoch Converter
epoch_convertConvert between Unix timestamps and dates. Converts a Unix timestamp (seconds or milliseconds, detected by size) or an ISO 8601 date string to epoch seconds, epoch milliseconds, an ISO UTC time, the same moment in an optional IANA time zone, and the weekday there. A date string with no offset is read in the given zone, UTC by default. Pure standard-library rules, no network, model or clock.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tz | No | Optional IANA time zone name such as America/New_York. Default UTC. Used for iso_in_tz and weekday, and as the zone of a date string that has no offset of its own. | |
| unit | No | Optional. Force a numeric value to be read as seconds (s) or milliseconds (ms) instead of auto-detecting. | |
| value | Yes | Required. A Unix timestamp (number or digits; seconds or milliseconds are detected by size) or an ISO 8601 date or date-time string such as 2024-03-10 or 2024-03-10T14:30:00-05:00. |