Tool to convert a timestamp. Timestamp is a number (or a character string) representing the date and time, usually with the number of seconds since Epoch.
Timestamp - dCode
Tag(s) : Date and Time, Informatics
dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!
A timestamp is a numerical value representing the number of time units (often seconds) that have elapsed since a reference date called Epoch, the value of which is set to 0.
Calculating a timestamp involves measuring the number of time units that have elapsed since a reference date, the Epoch.
In most systems (Unix, Linux, macOS, Java, PHP, C++), the Epoch is January 1, 1970, at 00:00:00 UTC, and each passing second increments the timestamp by one unit.
Example: January 1st, 2000, corresponds to 946681200 seconds after January 1st, 1970 (Unix Epoch).
Some timestamps use increments (ticks) finer than the second, such as milliseconds, microseconds, or nanoseconds.
A timestamp is used to reliably compare dates by manipulating numbers instead of complex calendar values.
This avoids ambiguities related to daylight saving time changes (when 2:59 a.m. plus one minute becomes 2:00 a.m.) or time zones.
A timestamp can also be used to order events, measure durations, or synchronize computer systems.
Converting a timestamp involves adding the timestamp value to the Epoch date, taking into account the desired time zone.
dCode converter interprets the number of seconds elapsed since the Epoch and automatically calculates the year, month, day, hour, minute, and second to obtain the corresponding date in UTC or local time.
Each software or system/hardware clock environment can use its own Epoch, as well as a different unit of time.
Here are the most common Epochs:
— Unix, Linux, macOS, most languages (C, C++, PHP, MySQL, Python, etc.): January 1, 1970 at 00:00:00 UTC (seconds; some configurations allow for milliseconds or microseconds).
— JavaScript: January 1, 1970 at 00:00:00 UTC, but in milliseconds.
— GPS: January 6, 1980 at 00:00:00 UTC, with counting in weeks plus seconds (and a rollover every 1024 weeks).
— Windows (since NT): January 1, 1601 at 00:00:00 UTC, in units of 100 nanoseconds.
— .NET: January 1, 0001 at 00:00:00, in 100-nanometer ticks.
— PostgreSQL: January 1, 2000 at 00:00:00 UTC.
To convert a UTC timestamp to local time, add the time zone offset, including any seasonal time changes. The conversion is performed using the formula: Local Date = UTC Date + Time Zone Offset.
The dates in Excel have their own Epoch (January 0, 1900 or December 31, 1899), the trick is to remove the one from Unix.
Example: For a date in cell A1: =(A1-DATE(1970,1,1))*86400
Reminder: There is a bug in the Excel calendar, 1900 is incorrectly marked as a leap year, and only dates from March 1, 1900 onwards are correct.
To convert a Unix timestamp to an Excel date, divide the timestamp by 86400 to express it in days, then add the Unix epoch.
Example: For a timestamp in cell A1: =A1/86400+DATE(1970,1,1)
January 1, 1970, at 00:00:00 UTC was chosen as the Epoch for Unix to simplify time calculations in early versions of the system and to provide a consistent international reference point.
This date is considered to mark the beginning of the UNIX era.
On January 19, 2038, at 03:14:07 UTC, the Unix timestamp will reach the maximum value representable by a 32-bit signed integer (2^31 - 1 = 2147483647).
The next second, the expected value (2147483648) will be interpreted as a negative number, referring to December 13, 1901.
This overflow will cause a malfunction on systems still using a 32-bit format.
Modern 64-bit systems, however, are not affected by this problem.
dCode retains ownership of the "Timestamp" source code. Any algorithm for the "Timestamp" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "Timestamp" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) or any database download or API access for "Timestamp" or any other element are not public (except explicit open source licence). Same with the download for offline use on PC, mobile, tablet, iPhone or Android app.
Reminder: dCode is an educational and teaching resource, accessible online for free and for everyone.
The content of the page "Timestamp" and its results may be freely copied and reused, including for commercial purposes, provided that dCode.fr is cited as the source (Creative Commons CC-BY free distribution license).
Exporting the results is free and can be done simply by clicking on the export icons ⤓ (.csv or .txt format) or ⧉ (copy and paste).
To cite dCode.fr on another website, use the link:
In a scientific article or book, the recommended bibliographic citation is: Timestamp on dCode.fr [online website], retrieved on 2025-12-07,