POST

Format Unix timestamp with locale, format string, and timezone. Uses date-fns-tz

/v1/timestamp-format

Conversions · date-fns-tz

Request → Response

Examples from schemas.json.

Requestapplication/json
POST /v1/timestamp-format
Content-Type: application/json

{
  "ts": 0,
  "format": "example",
  "tz": "example"
}
Responseapplication/json
HTTP/1.1 200 OK
Content-Type: application/json

// Endpoint-specific body after 402 settlement

Overview

Format Unix timestamp with locale, format string, and timezone. Uses date-fns-tz.

Request schema

Body: JSON · application/json

FieldTypeDescription
tsnumber | stringrequired
formatstringoptional
tzstringoptional
IMPLEMENTATION
curl -X POST https://api.tools402.dev/v1/timestamp-format \
  -H "Content-Type: application/json" \
  -d '{
  "ts": 0,
  "format": "example",
  "tz": "example"
}'

402 payment flow omitted — see Integrations for settlement.