← All tool references

Developer Tools · not_available

Unix Timestamp Converter

Convert Unix seconds or milliseconds to an ISO date and convert an ISO date-time back to Unix time.

Open public tool

Overview

Category
Developer Tools
API mode
not_available
Processing
client-side
Privacy
no-data-stored

Public descriptor

The descriptor is available without an API key and supplies this tool’s metadata, schemas, modes, and examples.

GET /api/v1/tools/unix-timestamp-converter

View this descriptor as JSON

Execute availability

This tool is documented as a browser capability. Its execute route does not produce a server-side result; when execution is enabled, it responds with browser_interaction_required and points callers to the public tool page.

POST /api/v1/tools/unix-timestamp-converter/execute

Authentication is not issued during the preview. A bearer API key is planned for execution after launch.

Input schema

object object; additional properties are not accepted.

direction · string · required
Choose the conversion direction that matches the calculation. Accepted values: unix_to_date, date_to_unix.
unix_timestamp · number · required
Enter the unix timestamp used in the calculation.
unix_unit · string · required
Choose the timestamp unit that matches the calculation. Accepted values: seconds, milliseconds.
date_time · string · required
Choose the date and time used by the timer.
{
    "type": "object",
    "properties": {
        "direction": {
            "type": "string",
            "description": "Choose the conversion direction that matches the calculation.",
            "enum": [
                "unix_to_date",
                "date_to_unix"
            ]
        },
        "unix_timestamp": {
            "type": "number",
            "description": "Enter the unix timestamp used in the calculation."
        },
        "unix_unit": {
            "type": "string",
            "description": "Choose the timestamp unit that matches the calculation.",
            "enum": [
                "seconds",
                "milliseconds"
            ]
        },
        "date_time": {
            "type": "string",
            "description": "Choose the date and time used by the timer."
        }
    },
    "required": [
        "direction",
        "unix_timestamp",
        "unix_unit",
        "date_time"
    ],
    "additionalProperties": false
}

Output schema

On a successful execution, schema values appear in data.result.values.

unix_seconds · number
Unix seconds produced by the calculation.
unix_milliseconds · number
Unix milliseconds produced by the calculation.
iso_utc · string
ISO 8601 UTC time produced by the calculation.
local_display · string
Browser-local date and time produced by the calculation.
{
    "type": "object",
    "properties": {
        "unix_seconds": {
            "type": "number",
            "description": "Unix seconds produced by the calculation."
        },
        "unix_milliseconds": {
            "type": "number",
            "description": "Unix milliseconds produced by the calculation."
        },
        "iso_utc": {
            "type": "string",
            "description": "ISO 8601 UTC time produced by the calculation."
        },
        "local_display": {
            "type": "string",
            "description": "Browser-local date and time produced by the calculation."
        }
    },
    "additionalProperties": false
}

Unix Timestamp Converter example

The request body follows the published input schema. The response below shows the success-envelope shape returned after execution is available.

curl -X POST "https://utilitypages.org/api/v1/tools/unix-timestamp-converter/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "direction": "unix_to_date",
    "unix_timestamp": 1783962000,
    "unix_unit": "seconds",
    "date_time": "2026-07-13T12:00"
}'
{
    "ok": true,
    "data": {
        "slug": "unix-timestamp-converter",
        "result": {
            "values": {
                "unix_seconds": 1783962000,
                "unix_milliseconds": 1783962000000,
                "iso_utc": "2026-07-13T17:00:00.000Z",
                "local_display": "7/13/2026, 12:00:00 PM"
            },
            "display": {
                "display": "1783962000"
            },
            "warnings": [],
            "assumptions": [],
            "steps": []
        }
    },
    "meta": [],
    "request_id": "req_example_123"
}

Errors

api_not_launched · 503
Returned by the current launch gate for every execute request.
invalid_json · 400
Returned when an enabled execute request does not contain valid JSON.
validation_failed · 422
Returned when a request does not satisfy the input schema.
browser_interaction_required · 422
Returned for browser capability tools instead of inventing a server-side result.
tool_not_found · 404
Returned when a requested descriptor slug does not exist.
execution_failed · 503
Returned when an enabled server-side execution cannot complete.