Category
Work with timezones and local business-hour checks.
Time endpoints give you a small timezone utility layer without pulling a full scheduling platform into your application.
Routes
3 GET
Default zone
Africa/Luanda
Business window
08:00 to 17:00
Routes in this family
#| Route | Purpose | Key query |
|---|---|---|
| /api/v1/time/now | Return the current time for a timezone. | timezone |
| /api/v1/time/convert | Convert a datetime from one timezone to another. | datetime, from, to |
| /api/v1/time/business-hours | Check whether a datetime falls inside business hours. | datetime, timezone, start, end |
GET /api/v1/time/now
#Use now when you need the current local time for a specific IANA timezone.
| Parameter | Required | Description |
|---|---|---|
| timezone | No | IANA timezone. Defaults to `Africa/Luanda`. |
cURL usage
200 response
Error response
GET /api/v1/time/convert
#Use convert to transform a local or absolute datetime from one timezone into another.
| Parameter | Required | Description |
|---|---|---|
| datetime | Yes | ISO datetime. If no offset is provided, the route interprets it in the source timezone. |
| from | Yes | Source IANA timezone. |
| to | Yes | Target IANA timezone. |
cURL usage
200 response
Error response
GET /api/v1/time/business-hours
#Use business-hours before sending notifications, calls, or reminders that should respect a local office window.
| Parameter | Required | Description |
|---|---|---|
| datetime | Yes | ISO datetime to evaluate. |
| timezone | No | IANA timezone. Defaults to `Africa/Luanda`. |
| start | No | Business-day start time in `HH:mm`. Defaults to `08:00`. |
| end | No | Business-day end time in `HH:mm`. Defaults to `17:00`. |
cURL usage
200 response
Error response