convert_epoch
Converts epoch timestamps between ISO, MJD, JD, GPS seconds, GPS nanoseconds, or GPS date formats, and across time systems like UTC, GPS, TAI, TT, UT1.
Instructions
Convert an epoch between time representations and time systems.
Supports ISO strings, MJD, JD, GPS seconds, GPS nanoseconds, and GPS date (week,seconds). Time systems: UTC, GPS, TAI, TT, UT1.
Args: value: The epoch value as a string. For ISO: '2024-01-01T12:00:00Z'. For MJD/JD/GPS: numeric string. For gps_date: 'week,seconds'. input_format: Input format - one of: iso, mjd, jd, gps_seconds, gps_nanoseconds, gps_date. input_time_system: Time system of input (ignored for iso and gps_* formats). One of: UTC, GPS, TAI, TT, UT1. output_format: Output format - one of: iso, iso_precise, string, mjd, jd, gps_seconds, gps_nanoseconds, gps_date. output_time_system: Time system for output. Empty string means same as input (or GPS for gps_* inputs).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | ||
| input_format | No | iso | |
| output_format | No | iso | |
| input_time_system | No | UTC | |
| output_time_system | No |