Changes to Unix time
TechWritereditor · 4 Dec 2026, 17:27 · “New page”
+ added − removed (first version)
Title
Removed:
Added: Unix time
Short description
Removed:
Added: Seconds counted since 1 January 1970 UTC
Type
Removed:
Added: technology
Summary
Removed:
Added: Unix time is a way for computers to record a moment as a single number: the seconds elapsed since 00:00:00 UTC on 1 January 1970. Systems that store it in a signed 32-bit number will overflow in January 2038.
Fact box
Removed:
Added: Type: Timekeeping system
Added: Epoch: 00:00:00 UTC, 1 January 1970
Added: Unit: Seconds (leap seconds not counted)
Added: Origin: Bell Labs Unix, early 1970s
Added: Standard: POSIX (IEEE Std 1003.1)
Added: C data type: time_t
Article
Added: **Unix time** is a way for computers to record a moment in time as a single number: the count of seconds since 00:00:00 Coordinated Universal Time (UTC) on 1 January 1970, a starting point known as the epoch.[^1][^3] It is used by [[Unix]] and systems derived from it, including [[Linux]] and macOS.[^3]
Added: ## History
Added: The first edition of the Unix Programmer's Manual, dated 3 November 1971, measured time in sixtieths of a second since 1 January 1971 as a 32-bit quantity; its own list of bugs noted that this would run out after only about 2.5 years.[^2] According to [[Dennis Ritchie]]'s notes on the manual, the problem was handled by declaring new epochs, and in 1973 the unit became whole seconds counted from New Year 1970, which became the classic Unix epoch.[^2]
Added:
Added: ## How it works
Added: Because the count has no notion of local time zones, the same number marks the same instant everywhere in the world.[^1] In the [[C (programming language)]] library the value is held in a type called time_t, and the POSIX standard requires the count to leave out leap seconds.[^1] The current POSIX standard, IEEE Std 1003.1-2024, defines functions such as mktime that convert calendar dates into this "time since the Epoch" and report an error when a date cannot be represented in a time_t.[^5]
Added:
Added: ## The year 2038 problem
Added: Early Unix systems stored timestamps as signed 32-bit integers, which can hold at most 2,147,483,647 seconds; that limit is reached at 03:14:08 GMT on 19 January 2038.[^3] Software can fail earlier, as soon as it handles a date beyond the limit, and a wrapped value is read as a date before 1970.[^3] Modern systems use 64-bit counts, which last for about 292 billion years.[^3] In 2020 the Linux kernel developers said that version 5.6 would be the first that could serve as a base for 32-bit systems designed to run beyond 2038, provided programs were rebuilt with a 64-bit time_t.[^4]
Added:
Added: ## See also
Added: - [[Unix]]
Added: - [[Year 2000 problem]]
Added: - [[Network Time Protocol]]
Added: - [[Linux]]
Sources
Removed:
Added: Simple Calendar Time (The GNU C Library manual) | https://www.gnu.org/software/libc/manual/2.22/html_node/Simple-Calendar-Time.html | GNU Project
Added: Unix Programmer's Manual, November 3, 1971 | https://www.nokia.com/bell-labs/about/dennis-m-ritchie/1stEdman.html | Nokia Bell Labs (Dennis M. Ritchie)
Added: Y2038: It's a Threat | https://www.cs.columbia.edu/~Smb/blog/2020-01/2020-01-19.html | Steven M. Bellovin, Columbia University | 2020-01-19
Added: Need 32-bit Linux to run past 2038? When version 5.6 of the kernel pops, you're in for a treat | https://www.theregister.com/2020/01/30/linux_5_6_2038/ | The Register | 2020-01-30
Added: mktime — convert broken-down time into time since the Epoch | https://pubs.opengroup.org/onlinepubs/9799919799/functions/mktime.html | The Open Group / IEEE (IEEE Std 1003.1-2024)
Categories
Removed:
Added: Operating systems
Added: Software
Other names
Removed:
Added: POSIX time
Added: Epoch time
Added: Unix timestamp
Added: Seconds since the Epoch