Utilities
Date/time math & timezones API
Timezone conversion, calendar/business-day arithmetic, durations between timestamps, and a market-open check. Answers queries like 'convert this time to EST', 'add 5 business days', 'how long between these dates', 'is the stock market open now'.
Price$0.01per request
MethodPOST
Route/v1/util/datetime
StatusLive
MIME typeapplication/json
Rate limit120/minute
CacheNo cache
utildatetimetimezonebusiness-daysdurationmarket-hoursdate
API URL
Integration docshttps://x402.hexl.dev/v1/util/datetimeExample request
{
"op": "add",
"datetime": "2026-06-02T00:00:00Z",
"days": 5,
"businessDays": true
}Example response
{
"op": "add",
"from": "2026-06-02T00:00:00.000Z",
"days": 5,
"businessDays": true,
"result": "2026-06-09T00:00:00.000Z"
}Input schema
{
"type": "object",
"required": [
"op"
],
"properties": {
"op": {
"type": "string",
"enum": [
"convert",
"add",
"diff",
"is-market-open"
]
},
"datetime": {
"type": "string",
"description": "ISO 8601"
},
"timezone": {
"type": "string",
"examples": [
"America/New_York"
]
},
"days": {
"type": "number"
},
"businessDays": {
"type": "boolean"
},
"from": {
"type": "string"
},
"to": {
"type": "string"
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}