TestingAPIs is still being built. If something breaks, email support@testingapis.com.

Return the current time in many formats

GEThttps://api.testingapis.com/api/utils/timeSign in to see this endpoint's URL

Parameters 1

NameTypeDescription
tzquery · stringOptional time zone, as an IANA id (Asia/Kolkata) or a Windows id (India Standard Time). Default UTC.

Responses

200
Success.
400
Unknown time zone.

Example

Request
curl -X GET "https://api.testingapis.com/api/utils/time?tz=Asia/Kolkata" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
{
  "utc": "2026-09-30T18:26:37.784Z",
  "unix": 1790792797,
  "unixMs": 1790792797784,
  "rfc1123": "Wed, 30 Sep 2026 18:26:37 GMT",
  "timeZone": {
    "id": "Asia/Kolkata",
    "displayName": "(UTC+05:30) Chennai, Kolkata, Mumbai, New Delhi",
    "offset": "+05:30",
    "isDaylightSaving": false
  },
  "local": "2026-09-30T23:56:37.784+05:30",
  "date": "2026-09-30",
  "time": "23:56:37",
… (4 more lines)

Sign in to see the details

The parameters, request and response examples and the live Try it panel for this endpoint are for signed-in members. Accounts are free and take a few seconds to create.