timestamp converter
timestamp_converterConvert between Unix timestamps and human-readable date/time formats. Accepts Unix epoch (in seconds or milliseconds), ISO 8601 strings, or 'now' for the current time. Returns both Unix seconds and milliseconds, ISO 8601 UTC string, date and time components, day of the week, relative time description ('2 hours ago'), and past/future indicator. Auto-detects whether a numeric input is seconds or milliseconds based on magnitude. Essential for debugging logs, API timestamps, cron scheduling, and time zone conversions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | A timestamp to convert. Accepts Unix epoch (seconds or milliseconds), ISO 8601 string (e.g. '2024-01-15T10:30:00Z'), or 'now' for the current time. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| is_past | Yes | True if the timestamp is in the past. | |
| iso_8601 | Yes | ISO 8601 formatted string in UTC (e.g. '2024-01-15T10:30:00.000Z'). | |
| iso_date | Yes | Date portion only (YYYY-MM-DD). | |
| iso_time | Yes | Time portion only (HH:MM:SS). | |
| relative | Yes | Human-readable relative time (e.g. '2 hours ago', 'in 3 days'). | |
| day_of_week | Yes | Day of the week (e.g. 'Monday'). | |
| unix_seconds | Yes | Unix timestamp in seconds since epoch (Jan 1 1970 00:00:00 UTC). | |
| unix_milliseconds | Yes | Unix timestamp in milliseconds since epoch. |