Unix epoch |
||
|
The Unix epoch is the representation of points in time as the number of 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. One thousand million seconds after that initial instant was 01:46:40 UTC on September 9, 2001, a moment known as the Unix billennium.
The Unix epoch ends GMT 03:14:07, Tuesday, January 19, 2038.
In POSIX conforming systems, the type
The In many ways this representation of time is awkward; because of leap seconds, it isn't possible in general to say how many seconds there are between the beginning of the epoch and a particular time more than a few years in the future. This is because it isn't possible to predict when a leap second will be required more than a few years in advance.
POSIX time inconsistencyOne version of POSIX was inconsistent in its handling of time because it defined "seconds since the epoch" as "the number of seconds between a specified time and the epoch", and also gave a formula for it (using integer divides):
tm_sec + tm_min*60 + tm_hour*3600 + tm_yday*86400 +
(tm_year-70)*31536000 + ((tm_year-69)/4)*86400
This formula doesn't take into account leap seconds which leads to an inconsistency. |
||
Try putting this code snipplet on your page |
||