A drop-in replacement for WorldTimeAPI
- http://worldtimeapi.org/api/timezone/{area}/{location}
+ http://wt.utc.wtf/api/timezone/{area}/{location}
Endpoints
GET /api/timezone | JSON array of every IANA zone name |
|---|---|
GET /api/timezone/{area} | JSON array of the zone names in {area} |
GET /api/timezone/{area}/{location}[/{region}] | JSON object: the current time in that zone |
GET /api/ip | JSON object: the current time in the client's zone, geolocated from its IP |
Options
.txt | Append to any path for text/plain |
|---|---|
?extended=1 | Adds an extended object: Unix ms, RFC 2822, HTTP date, ISO week date, TAI, GPS time, Julian date, MJD, Swatch .beat |