Epoch Time

Time

Unix time:

1794942947 in seconds 1794942947082 in milliseconds

Unix time an hour ago:

1794939347 in seconds 1794939347082 in milliseconds

Unix time a day ago:

1794856547 in seconds 1794856547082 in milliseconds

Unix time a week ago:

1794338147 in seconds 1794338147082 in milliseconds

Time in milliseconds

Interval Dura tion
(days)
Dura tion
(ms)
Day 1 86400000
Week 7 604800000
Month 30 2592000000
Year 365 31536000000

Date

Today: Tue, 17 Nov 2026 11:15:47 -0800

History

Unix time (English Unix time, also POSIX time) — a system for describing moments in time, adopted in Unix and other POSIX-compatible operating systems.

It is defined as the number of seconds elapsed since midnight (00:00:00 UTC) on 1 January 1970 (Thursday); this moment is called the "Unix epoch" (English Unix Epoch).

Integer representation

Unix time is represented by an integer that increases with every second elapsed, with no need for calculations to determine the year, month, day, hour or minute for human convenience. Modern Unix time is consistent with UTC — the count is in SI seconds. The time span of one day is almost always divided into 86,400 seconds, but when leap seconds are declared it comprises 86,401 seconds. Such seconds, according to Universal Time, keep the length of days synchronized with the time of the planet's rotation. In Unix time the corresponding second numbers repeat, that is, leap seconds are not taken into account.

At the moment 00:00:00 UTC on 1 January 1970 (Thursday) Unix time is equal to zero. Starting from that time, the number grows by a certain amount each day. Thus, for example, on 16 September 2004 at 00:00:00, 12,677 days after the start of the Unix time count, the time will be represented by the number 12,677 × 86,400 = 1,095,292,800, or in the case of 17 December 2003 at 00:00:00, 12,403 days after the start of the count, the time will be the number 12,403 × 86,400 = 1,071,619,200. Calculations can also be made in the opposite direction using negative numbers. For example, the date 4 October 1957 at 00:00:00, which is 4,472 days before the start of the count, is represented in Unix time by the number −4,472 × 86,400 = −386,380,800.

Every day the number representing Unix time is calculated in the manner described in UTC (00:00:00Z) and increases by exactly 1 per second, starting from midnight. Therefore, the moment 16-09-2004 17:55:43.54, corresponding to 64,543.54 seconds from midnight of that date, from the example above, will be represented in Unix time by the number 1,095,292,800 + 64,543.54 = 1,095,357,343.54. For dates preceding the start of the count, the number also increases, that is, it approaches zero as time passes[2].

The integer system used is convenient for comparing and storing dates (a date and time in this format take only 4 or 8 bytes). When there is a need to access date elements (day, month, year), the seconds can be converted to any suitable format (and vice versa).

Programs use a signed integer type to store Unix time. Signed 32-bit numbers can refer to moments in time from Friday 13 December 1901 20:45:52 to Tuesday 19 January 2038 03:14:07 inclusive.

To find out the current Unix time on most Unix-like systems, you can use the date +%s command.

Article author: Andrei Olegovich