### GET /v1/time/current Source: https://timelogicapi.com/docs Retrieves the current time for a specified timezone. This is the first request example shown in the getting started guide. ```APIDOC ## GET /v1/time/current ### Description Retrieves the current time for a specified timezone. ### Method GET ### Endpoint https://api.timelogicapi.com/v1/time/current ### Parameters #### Query Parameters - **tz** (string) - Required - Timezone identifier, e.g., Europe/Paris. ### Request Example curl "https://api.timelogicapi.com/v1/time/current?tz=Europe/Paris" \ -H "Authorization: Bearer $TIMELOGIC_API_KEY" ### Authentication Authorization: Bearer YOUR_TIMELOGIC_API_KEY Alternatively, use X-API-Key header or api_key query parameter. ``` -------------------------------- ### GET /v1/time/diff Source: https://timelogicapi.com/docs Calculates the duration between two specifier-encoded instants. Supports business days and holiday adjustments. ```APIDOC ## GET /v1/time/diff ### Description Calculates the duration between two specifier-encoded instants. Supports business days and holiday adjustments. ### Method GET ### Endpoint https://api.timelogicapi.com/v1/time/diff ### Parameters #### Query Parameters - **from** (string) - Required - Embedded specifier for the start instant. Examples: `unix=1711300000`, `iso=2026-04-16T09:00:00`, `now`. - **to** (string) - Required - Embedded specifier for the end instant. Examples: `iso=2026-04-30T00:00:00Z`. - **business_days** (boolean) - Optional - When `true`, includes a `business_days` count in the response. - **holiday_country** (string) - Optional - ISO 3166-1 alpha-2 country code to subtract public holidays. - **holiday_subdivision** (string) - Optional - Regional calendar code (e.g., `ENG`, `CA`) for regional holidays. ### Request Example curl "https://api.timelogicapi.com/v1/time/diff?from=iso=2026-01-02T00:00:00Z&to=iso=2026-04-30T00:00:00Z&business_days=true&holiday_country=FR" \ -H "Authorization: Bearer $TIMELOGIC_API_KEY" ### Response #### Success Response (200) - **business_days** (integer) - Number of business days between the two instants, when `business_days=true`. #### Error Response (400) - **error** (string) - Error code `INVALID_PARAMETER` with message "Unsupported holiday calendar" when the holiday country is not supported. ``` -------------------------------- ### GET /.well-known/time-api-public-key Source: https://timelogicapi.com/docs Fetches the public keys used to verify signed responses. Cache keys by kid; historical keys may remain available after rotation. ```APIDOC ## GET /.well-known/time-api-public-key ### Description Fetches the public keys used to verify signed responses. Cache keys by kid; historical keys may remain available after rotation. ### Method GET ### Endpoint https://api.timelogicapi.com/.well-known/time-api-public-key ### Response #### Success Response (200) - **keys** (array) - List of public JWK keys, each with a `kid`. #### Response Example { "keys": [ { "kid": "example-key-id", "kty": "RSA", "use": "sig", "alg": "RS256", "n": "...", "e": "AQAB" } ] } ``` -------------------------------- ### GET /v1/time/clock Source: https://timelogicapi.com/docs Returns a self-bootstrapping HTML fragment for an embeddable clock. The style parameter is required and must be one of 30 named styles. Responses are uncached. ```APIDOC ## GET /v1/time/clock ### Description Returns a self-bootstrapping HTML fragment: a host
, a JSON config