Datetime with an optional UTC offset
Without an offset, /datetime returns the current datetime in UTC. Add a four-digit offset to request another UTC offset.
curl https://aisenseapi.com/services/v1/datetime/+0200
{ "datetime": "2026-08-16T11:44:35+02:00" }Use four digits with an optional sign. Valid examples are +0200, -0530 and 0100. An hour-only value such as 1 does not match the route.
Unix timestamp and microtimestamp
Timestamp
GET/timestamp
{ "timestamp": 1786873261 }Whole seconds since the Unix epoch.
Microtimestamp
GET/microtimestamp
{ "microtimestamp": 1786873474.745043 }Unix time with fractional seconds.
Timezone list and offset filter
/timezones returns IANA timezone names and their current offsets. Add a four-digit offset to filter the list.
curl https://aisenseapi.com/services/v1/timezones/+0200
{
"timezones": [
{ "timezone": "Africa/Blantyre", "offset": "+0200" },
{ "timezone": "Europe/Oslo", "offset": "+0200" }
]
}The timezones value is an array of objects. It is not an array of strings. Offsets can change with daylight-saving rules, so read the returned value instead of storing a permanent assumption.
Swatch Internet Time
This endpoint divides the day into 1000 beats based on Biel Mean Time.
curl https://aisenseapi.com/services/v1/swatchinternettime
{ "beat": "@444", "date": "2026-08-16" }beat is a string that begins with @.
Convert between time formats
POST /timestamp_convert takes one value - unix seconds, unix milliseconds (13 digits and up, detected automatically), ISO 8601, RFC 2822 or "now" - and returns every representation, with an optional four-digit offset for the datetime output. Bad input returns HTTP 400.
curl -X POST https://aisenseapi.com/services/v1/timestamp_convert
-H "Content-Type: application/json" -d '{"data": "1700000000123", "offset": "+0100"}'
{ "detected": "unix_ms", "timestamp": 1700000000,
"datetime": "2023-11-14T23:13:20+01:00", "utc_datetime": "2023-11-14T22:13:20+00:00" }Common uses
Workflow timestamps
Add a shared server-side timestamp to an automation result.
Timezone selection
Build a list of zones that currently share a given UTC offset.
Scheduling input
Convert a user-selected offset into an ISO 8601 value.
Testing
Fetch a current value when test code needs time from an external source.
Response and error handling
The response key matches the endpoint name. Errors return {"error": "..."} with a real HTTP status - 400 for bad input, 404 for unknown paths and ids. The service-wide limit is 5000 requests per IP per 24 hours.