Misc

Convert Timestamp (legacy — use /convert/unixtime instead)

0calls
Free

Legacy endpoint that converts a Unix timestamp into a human-readable date and time.

Overview

Provide a second-level or millisecond-level Unix timestamp and the endpoint returns the corresponding local time and UTC time.

Warning

Deprecated: This endpoint has been superseded by /convert/unixtime, which is more powerful and supports two-way conversion. Please migrate to the new endpoint.

➡️ Go to the new endpoint

Query parameters

ts
stringrequired

The Unix timestamp to convert. Accepts 10 digits (seconds) or 13 digits (milliseconds).

Response

200 / OK

Conversion succeeded.

JSON

400 / Bad Request

Invalid timestamp parameter. Make sure ts is a numeric string.

JSON