Encoding Human-Readable Dates & Times into UNIX Epoch Integers
Converting civil calendar dates and clock times into UNIX timestamps eliminates timezone ambiguity across distributed APIs, JWT expiration claims (exp, iat), PostgreSQL/MySQL integer columns, and log aggregation pipelines. Select UTC mode to anchor timestamps directly to GMT, or switch to Local Timezone mode to convert your computer's local wall-clock reading automatically.
Frequently Asked Questions
Does UTC vs. Local Timezone change the UNIX timestamp?
Yes. A UNIX timestamp always represents a single global instant in UTC. Entering 12:00 in UTC produces a different integer than entering 12:00 in a non-UTC local timezone.
How do I get a JavaScript millisecond timestamp?
Copy the 'Milliseconds (JS/Java)' output, which multiplies UNIX seconds by 1,000.
Can I encode dates before January 1, 1970?
Yes. Dates prior to 1970-01-01T00:00:00Z produce valid negative UNIX epoch integers.