Unix timestamp guide | UnixDate
Developer guide for working with Unix timestamps safely and predictably.
API integration
If your API returns timestamps, choose a consistent format and validate inputs strictly.
Recommendations
- Return ISO 8601 UTC (
2026-02-08T12:34:56Z) and/or epoch seconds. - Document whether values are seconds or milliseconds.
- Reject values out of an expected range (e.g., 1900–3000).
Example UnixDate API
GET https://unixdate.com/api/nowReturns JSON with UTC, local, and relative fields.