〜 ★ dCode presents ★ 〜


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 to Date Converter


Date to Timestamp Converter


Current Unix Timestamp

Answers to Questions

How to calculate a timestamp?

A timestamp (digital) is calculated from an initial date named Epoch, having for value 0. Each second after this date increments the timestamp with 1 unit.

The most popular Epoch is January 1, 1970 for Unix operating systems, Java programming languages, PHP, C ++, etc...

Epoch is January 6, 1980 for GPS (first Sunday of the year 1980)

Example: January 1, 2000 corresponds to 946681200 seconds after January 1, 1970 (Epoch Unix)

Some timestamps are more accurate than the second, each increment (called tick) can be of the order of milliseconds, microseconds or nanoseconds.

How to use a timestamp?

A timestamp allows comparison of two dates in an fast, exact and sure way. Indeed, with daylight saving time change, sometimes a 2h59 in the morning plus one minute, suddenly it is 2h00, the comparison of times is therefore difficult.

How to convert a timestamp?

dCode allows to convert automatically by calculating exact days, months, years, hours, minutes and seconds (depending on the time zone).

How to convert a Date into a Unix Timestamp in Excel?

The dates in Excel have their own Epoch (January 0, 1900), the trick is to remove the one from Unix.

Example: For a date in cell A1 : =(A1-DATE(1970,1,1))*86400

How to convert a Unix Timestamp into a Date in Excel?

The trick is to add the date Epoch of Unix/Linux =A1/84600+DATE(1970,1,1)

Why Epoch Unix is 1970-01-01?

January 1st, 1970 00:00 UTC is the start of UNIX era.

Windows systems (32 and 64 bits) use January 1st, 1601

What is going to happen on the january 19th, 2038?

On the 19/01/2038 at 03:14:07, the number of seconds since Epoch Unix will be 2147483647 seconds : 2^31-1, this is the size limit for 32bits systems. There will be a bug on the next second when calculating dates on these systems and all future dates will be considered in the past by the system.

Source code

dCode retains ownership of the source code of the script Timestamp online. Except explicit open source licence (indicated Creative Commons / free), any algorithm, applet, snippet, software (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, translator), or any function (convert, solve, decrypt, encrypt, decipher, cipher, decode, code, translate) written in any informatic langauge (PHP, Java, C#, Python, Javascript, Matlab, etc.) which dCode owns rights will not be released for free. To download the online Timestamp script for offline use on PC, iPhone or Android, ask for price quote on contact page !

Questions / Comments

Team dCode likes feedback and relevant comments; to get an answer give an email (not published). It is thanks to you that dCode has the best Timestamp tool. Thank you.

Source : https://www.dcode.fr/timestamp-converter