# Unix timestamp converter > How do you turn a Unix timestamp into a date? Convert Unix timestamps to dates and dates to timestamps, in any time zone. Convert a Unix timestamp in seconds or milliseconds to a date and time in any time zone, or a date to a timestamp. ISO 8601 output, with daylight saving. - Page: https://how.box/unix-time/ - Runs entirely in the browser. - License: HowToolbox's own text and data (titles, explanations, FAQs, tool descriptions and schemas, this file) are CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); AI training and answers are welcome. Attribute "HowToolbox (how.box)" with a link to the page used. Third-party data keeps its own terms; the name and logo are not licensed. Publisher: HowToolbox, contact@how.box. Terms: https://how.box/about/terms/ ## Inputs Answer link: https://how.box/unix-time/?d={d}&ts={ts}&u={u}&day={day}&t={t}&z={z} - `d` (to_date or to_timestamp): to_date (timestamp → date) or to_timestamp (date → timestamp). Example: `to_date`. - `ts` (text): The Unix timestamp, in the unit u. Example: `1700000000`. - `u` (seconds or milliseconds): seconds or milliseconds. Example: `seconds`. - `day` (text): Local date YYYY-MM-DD, for to_timestamp. Example: `2026-10-15`. - `t` (text): Local time HH:MM:SS, for to_timestamp. Example: `14:30:00`. - `z` (text): IANA time zone, or device. Example: `UTC`. Example answer: https://how.box/unix-time/?d=to_date&ts=1700000000&u=seconds&day=2026-10-15&t=14%3A30%3A00&z=UTC A complete link carries the primary answer in the page HTML; a missing or invalid value shows the default page. ## Agent tools - `unix_time_convert`: Converts between a Unix timestamp (seconds or milliseconds since 1970-01-01T00:00:00Z, leap seconds not counted) and a date and time in an IANA time zone, with daylight saving time from the browser's time-zone database. - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"unix_time_convert","arguments":{"direction":"to_date","timestamp":"1700000000","unit":"seconds","date":"2026-10-15","time":"14:30:00","zone":"UTC"}}}` - GET: https://how.box/mcp/run/unix_time_convert?direction=to_date×tamp=1700000000&unit=seconds&date=2026-10-15&time=14%3A30%3A00&zone=UTC ## How it works A Unix timestamp is a way of saying when something happened with a single number: the seconds that have passed since midnight at the start of 1 January 1970, in UTC. Computers, databases, logs and programming languages use it because a number is easy to store, compare and subtract, and it means the same moment everywhere. JavaScript and many systems count in milliseconds instead, which gives a number a thousand times larger. Turning a timestamp into a date is arithmetic: every day counts as exactly 86,400 seconds, so the number is split into whole days since 1970 and the seconds left over (POSIX, Seconds Since the Epoch). For example 1,700,000,000 is 14 November 2023 at 22:13:20 UTC. The time zone only changes how that moment is written on a clock; the timestamp stays the same. The result is also given in the ISO 8601 form used on the internet (RFC 3339), such as 2023-11-14T22:13:20Z. Unix time ignores leap seconds, and this tool covers the years 1 to 9999. A local time can be ambiguous or missing when the clocks change for daylight saving time, and the tool tells you when that happens. ## FAQ **Is my timestamp in seconds or milliseconds?** Today a timestamp in seconds has 10 digits and one in milliseconds has 13. If the date comes out thousands of years in the future, you have milliseconds. **Does a timestamp depend on the time zone?** No. It counts from one moment in UTC, so it is the same everywhere. Only the date and time written from it differ by zone. **What happens in the year 2038?** Systems that store the timestamp in a 32-bit signed number run out on 19 January 2038. This tool uses larger numbers, so it keeps working. **What does a negative timestamp mean?** It is a time before 1 January 1970 at 00:00 UTC. **Are leap seconds included?** No. Each day counts as exactly 86,400 seconds. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)