community
directory
books
authors
images
encyclopedia

Email:
Password:
Register

Knowledgerush Search

 

Google
  Web knowledgerush


Search for images of Unix epoch


Message boards   Post comment

Unix epoch

The Unix epoch is the representation of points in time as the number of non-leap seconds since 00:00:00 UTC on January 1 1970, introduced by the Unix operating system, standardised in POSIX, and later adopted by the Java programming language and JavaScript. Because many computers today store the number of seconds as a 32-bit signed integer, the Unix epoch is often said to last 231 seconds, thus “ending” at 03:14:07 Tuesday, January 19, 2038 (UTC).

Storage formats for Unix times

In POSIX conforming systems, the type time_t is often used to represent times. It is an arithmetic type in the C programming language. There is no requirement that time_t be a 32-bit quantity (it could be a 64-bit integer or a floating point in double format), but most systems define time_t as a signed 32-bit integer, and many application programs may assume it, or may store values in a 32-bit type. A signed 32-bit integer type can represent numbers ranging from -231 to 231 - 1, that is, -2147483648 to 2147483647. In this format, time_t will run out of positive integers 231-1 seconds (that is 24855 days, 3 hours, 14 minutes and 7 seconds) after the Epoch, in the year 2038, and thus cannot represent times beyond that point.

Effects of the 2038 rollover

Programs which must handle times beyond the rollover data will need to be changed to accommodate a shift from 32-bit to 64-bit representation, not unlike the Year 2000 problem. Adapting existing programs may be as easy as re-compiling them with header files that declare time_t as a 64-bit integer, but other programs make deep assumptions as to the nature of time_t. Also, the source code to some software packages may have been lost by then, in which case programmers might have to reverse engineer the software to change its date behavior. In fact, some claim that the expiration of the Unix epoch timeframe may cause more damage than was predicted for the Y2K bug.

Trivia

One thousand million seconds after the start of the Unix epoch was 01:46:40 UTC on September 9, 2001, a moment known as the Unix billennium.

230 (1073741824) seconds from the start of the Unix epoch was 13:37:04 UTC on January 10, 2004. This was the first time value to require 31 bits of storage. Curiously, the digits at this time spell “1337

In Vernor Vinge's novel A Deepness in the Sky, it is revealed that the Qeng Ho interstellar traders use the Unix epoch as their timekeeping system...

Referenced By

1970 | 1 Jan | 1 January | 1st January | 2038 | Epoch | Historical anniversaries/January 1 | Jan 1 | January 1 | January 1st | Millennium Bug | Unix billenium | Unix billennium | Y2K bug | Year 10,000 problem | Year 2000 bug | Year 2000 problem

 

Compose Your Message

Your Email Address or Pen Name (optional):
Subject:
Your Message:
 

 

 

 

 

 

This article is licensed under the GNU Free Documentation License. It uses material from the Wikipedia article "Unix epoch".

 

Contact UsPrivacy Statement & Terms of Use

 
Copyright © 1999-2003 Knowledgerush.com. All rights reserved.