GET /api/now
Current UTC time.
curl https://time.ztech.dev/api/now
Simple public JSON endpoints for current time, timezones, conversion, timestamps and calendar data.
Current UTC time.
curl https://time.ztech.dev/api/now
Current time for an IANA timezone.
curl https://time.ztech.dev/api/time/Asia/Ho_Chi_Minh
Query-string form of the timezone endpoint.
curl "https://time.ztech.dev/api/time?tz=Asia/Tokyo"
UTC time alias.
curl https://time.ztech.dev/api/utc
Convert local date/time between timezones. Parameters: from, to, time.
curl "https://time.ztech.dev/api/convert?from=Asia/Ho_Chi_Minh&to=America/New_York&time=2026-10-08T21:00:00"
List IANA timezones. Optional q filter.
curl "https://time.ztech.dev/api/timezones?q=Tokyo"
Current Unix timestamp.
curl https://time.ztech.dev/api/timestamp
Decode Unix seconds.
curl https://time.ztech.dev/api/timestamp/1791463062
Calendar metadata for YYYY-MM-DD.
curl https://time.ztech.dev/api/calendar/2026-10-08
Current DST state and next transition.
curl https://time.ztech.dev/api/dst/Europe/London
Offset difference at the current instant. Parameters: from, to.
curl "https://time.ztech.dev/api/difference?from=Asia/Ho_Chi_Minh&to=America/New_York"
Return requester IP and Cloudflare country metadata when available.
curl https://time.ztech.dev/api/ip
Service health and server time.
curl https://time.ztech.dev/api/health
Successful responses return JSON objects. Errors use a consistent error.code and error.message.
{
"error": {
"code": "INVALID_TIMEZONE",
"message": "Unknown IANA timezone: ..."
}
}
The public MVP allows 60 requests per minute per IP. Rate-limit headers are returned on API requests.
Use IANA identifiers such as Asia/Ho_Chi_Minh, Asia/Tokyo, Europe/London and America/New_York.
The initial public API is keyless. Authentication and usage dashboards can be added later if traffic requires them.