When was the era of the Unix era, revised from 1971 to the current 1970 value?

According to the first edition of the Unix Programmer Manual , Unix time is defined as "time from 00:00:00, January 1, 1971, measured in the sixties of the second"

When did this change to its current midnight (UTC) value, January 1, 1970?

+5
source share
1 answer

In the first release of Unix (November 1971), the page for the system time of the time stated that it returned β€œtime from 00:00”: 00, January 1, 1971, measured in sixties. ”This was a 32-bit value, so it was even considered as unsigned, it could only track about 2.26 years after that date, however the man page and comments on the source code describe the system call as "get the time of year", the year cannot be, and and (used to format the date and time) did not format the year or even worked correctly with time values ​​greater than 1 year, so it is likely that the date will be manually reset every year and 1971 on the manual page is insignificant. Well, with the exception of a small problem, that 1972 has an extra day; in this regard, a note was added to the error section : "The procedure must be reassembled for a leap year." Nice. date ctime()

In 1972, the manual page for the system time was changed to state that it returned time from β€œ00:00:00, Jan 1, 1972”, with a note: β€œThe time is stored in 32 bits, which guarantees a crisis every 2.26 years "

Unix ( 1973) , " 00:00:00 , . 1, 1970, ". ( 5 1973 , , .) , , GMT . , 32- , 2038. , 64 .

+6

All Articles