unix ↔ date, iso 8601, utc, relative
curl -sX POST 'https://api.whittly.dev/v1/timestamp/convert' \
-H 'Authorization: Bearer $WHITTLY_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"input":"1716000000"}'
const res = await fetch('https://api.whittly.dev/v1/timestamp/convert', {
method: 'POST',
headers: {
'Authorization': 'Bearer ' + apiKey,
'Content-Type': 'application/json',
},
body: JSON.stringify({ input: "1716000000" }),
});
const data = await res.json();
const { data } = await axios.post(
'https://api.whittly.dev/v1/timestamp/convert',
{ input: "1716000000" },
{ headers: { Authorization: 'Bearer ' + apiKey } }
);
Unix timestamps count the seconds (or milliseconds) elapsed since January 1, 1970 00:00:00 UTC. They are timezone-independent and used in databases, APIs, and log files. This converter turns them into human-readable dates and converts dates back to timestamps.