Epoch Converter
Convert a date/time to a Unix epoch timestamp.
Converting to and from the epoch
This converter is the other direction of the same clock. You have a civil time and you want the integer, or you have the integer and you want the civil time. The epoch is 1970-01-01 00:00:00 UTC. Every calculation on this page is in UTC. If the wall clock you care about is America/Chicago, convert after you have the UTC result. Central Time is UTC-6 in standard time and UTC-5 in daylight time, and the calculator will not guess which one you meant.
A worked example: 2024-01-01 00:00:00 UTC is 1704067200. If a file's mtime is that number, it is the start of 2024 in London winter, not the start of the year in Wisconsin. Adding 86,400 moves you one UTC day. Adding 3600 moves you one hour. Those additions are exact only because UTC days here ignore leap seconds, which is what Unix time does.
Do not use the result as a unique id. Two events in the same second share a timestamp. Do not use a 32-bit store past 2038. And do not paste a millisecond value from a browser without dividing by 1000, or the date will land centuries ahead.
The tool does not contact a time server. It is arithmetic on the number you type. If the host that generated the number had a wrong clock, the conversion is still faithful to the number and still wrong about the world.
