Convert TIME to TIMESTAMP, Free
Files convert instantly in your browser. 100% private, any file size, no account needed.
How to convert TIME to TIMESTAMP
A Unix timestamp is the number of seconds since January 1, 1970, 00:00:00 UTC (the Unix epoch). Virtually every system that deals with time internally uses this integer representation: databases, APIs, log files, and programming languages all work with Unix timestamps to avoid timezone and format ambiguity. This converter takes a human-readable time (like '14:30:00') combined with a date and timezone, and computes the corresponding Unix timestamp using JavaScript's Date object entirely in your browser.
The critical variable is timezone. A time of '14:30:00' in New York and '14:30:00' in London correspond to different timestamps because they refer to different absolute moments. Always specify the timezone explicitly when converting a time to a timestamp. If you are converting to feed an API or database, confirm whether it expects UTC or local time, and whether it wants seconds or milliseconds (JavaScript's Date.now() returns milliseconds; most Unix tools expect seconds).
Enter the date and time
Type the date (YYYY-MM-DD) and time (HH:MM:SS). Seconds are optional; they default to zero.
Select the timezone
Choose UTC or your local timezone. The timezone selection directly affects the output timestamp value.
Read the Unix timestamp
The 10-digit Unix timestamp in seconds appears instantly. The milliseconds version (x1000) is also shown.
Copy and use
Click Copy to grab the timestamp. Most APIs need seconds; JavaScript and Java typically use milliseconds.
Frequently asked questions
What is a Unix timestamp?
An integer count of seconds elapsed since January 1, 1970, 00:00:00 UTC. Also called Unix time, epoch time, or POSIX time.
Why does timezone selection change the timestamp?
A timestamp represents a fixed absolute moment. 14:30 UTC and 14:30 EST are different moments. Selecting the correct timezone ensures the timestamp points to the right moment in time.
Should I use seconds or milliseconds?
Unix convention is seconds. JavaScript (Date.now(), Date.getTime()), Java (System.currentTimeMillis()), and some APIs use milliseconds. When in doubt, check the API documentation.
How do I convert a timestamp back to a human-readable time?
Use the reverse converter on this page, or in JavaScript: new Date(timestamp * 1000).toISOString() for UTC, or new Date(timestamp * 1000).toLocaleString() for local time.
What timestamp corresponds to midnight on a given date?
Midnight UTC gives a timestamp where the time component is zero in UTC. Midnight local time gives a timestamp offset by the timezone's UTC offset.