Pick a field
Ask for one named value or combine several with a pipe or comma.
/get.json?field=weekday|dow|domPublic · No authentication
One tiny API for current time, timezone conversion, calendar fields, and any PHP-compatible date format.
$ curl "/get.json?timezone=Europe/Berlin&locale=de_AT&field=weekday|dow|dom"
01 / Quickstart
Every endpoint is public and accepts a standard IANA timezone such as Europe/Berlin or America/New_York.
Ask for one named value or combine several with a pipe or comma.
/get.json?field=weekday|dow|domUTC and English are the defaults. Add any locale only when translated names are needed.
&timezone=Europe/Vienna&locale=de_ATPass any PHP DateTime::format() pattern and receive the final string.
/get.json?format=Y-m-d H:i:s P{
"timezone": "Europe/Berlin",
"fields": ["weekday", "dow", "dom"],
"values": {
"weekday": "Monday",
"dow": 1,
"dom": 27
},
"timestamp": 1785155405
}
02 / Endpoints
The original routes and response shapes remain stable. New focused routes sit alongside them.
/get.jsonNewNamed calendar fields or a custom PHP-formatted value.
weekday|dow|domfieldUTCde_AT; defaults to English/format.txtNewCustom formatted current time as a raw text value.
↗/timezones.jsonNewEvery accepted IANA timezone identifier.
↗/health.jsonNewReadiness status for the clock, timezone database, and runtime storage.
↗/time/{timezone}.jsonStableThe current time in one timezone using the original response shape.
↗/times.jsonStableThe current time across all supported timezones, grouped by region.
↗/auto.jsonStableTimezone and current time inferred from the caller’s IP address.
↗/plain/{timezone}.txtStableThe original flattened time response as plain text.
↗/openapi.json3.1Machine-readable API contract for generators and clients.
↗03 / Playground
Everything runs against the live API on this host. No account, token, or SDK required.
{
"hint": "Send a request to see the live response."
}
04 / Format reference
All characters supported by PHP’s date() / DateTime::format() are available. With locale, the D, l, M, and F names are localized. Characters not listed are printed as-is.
l, j F Y · H:i:s P
05 / Build with it
Import the OpenAPI 3.1 document into Postman, Insomnia, Swagger UI, or your favorite code generator.