xref: /minix/external/bsd/top/dist/Y2K (revision b89261ba)
1*b89261baSDavid van MoolenbroekTop and the Year 2000
2*b89261baSDavid van Moolenbroek
3*b89261baSDavid van MoolenbroekThe software package top will not be affected by years numbering
4*b89261baSDavid van Moolenbroekbetween 2000 and 2037.  No portion of the top code stores dates on
5*b89261baSDavid van Moolenbroekdisk.  All date processing in top is performed with functions from the
6*b89261baSDavid van MoolenbroekUnix C library and Unix kernel.  The specific functions are: time(2)
7*b89261baSDavid van Moolenbroekand ctime(3S).  These functions deal exclusively with conventional
8*b89261baSDavid van MoolenbroekUnix time values (number of seconds since Midnight January 1, 1970
9*b89261baSDavid van MoolenbroekGMT) and produce strings with a 4-digit year.  At no point in the code
10*b89261baSDavid van Moolenbroekfor top are the last two digits used to represent a year.
11*b89261baSDavid van Moolenbroek
12*b89261baSDavid van MoolenbroekTop and the Year 2038
13*b89261baSDavid van Moolenbroek
14*b89261baSDavid van MoolenbroekIn the year 2038 top will fail to represent the time of day correctly
15*b89261baSDavid van Moolenbroekon 32-bit Unix operating systems.  This is due to a limitation in the
16*b89261baSDavid van Moolenbroekway Unix represents time.  Top will only work on systems whose kernel
17*b89261baSDavid van Moolenbroekcall "time" and C library call "ctime" have been adjusted to represent
18*b89261baSDavid van Moolenbroektime with a value greater than 32 bits.  The exact date and time of
19*b89261baSDavid van Moolenbroekthis failure is 3:14:08 January 19, 2038 GMT.  Note that this failure
20*b89261baSDavid van Moolenbroekwill only affect the display of the current time in the output from
21*b89261baSDavid van Moolenbroektop.
22*b89261baSDavid van Moolenbroek
23*b89261baSDavid van Moolenbroek
24*b89261baSDavid van MoolenbroekTHERE IS ABSOLUTELY NO WARRANTY PROVIDED WITH THIS SOFTWARE.
25*b89261baSDavid van MoolenbroekPlease see the contents of the file "LICENSE" for further
26*b89261baSDavid van Moolenbroekinformation.
27