xref: /netbsd-src/external/bsd/top/dist/Y2K (revision 10dd2532a5fc0a73e461275cb9fca28fc3013d32)
1*10dd2532SchristosTop and the Year 2000
2*10dd2532Schristos
3*10dd2532SchristosThe software package top will not be affected by years numbering
4*10dd2532Schristosbetween 2000 and 2037.  No portion of the top code stores dates on
5*10dd2532Schristosdisk.  All date processing in top is performed with functions from the
6*10dd2532SchristosUnix C library and Unix kernel.  The specific functions are: time(2)
7*10dd2532Schristosand ctime(3S).  These functions deal exclusively with conventional
8*10dd2532SchristosUnix time values (number of seconds since Midnight January 1, 1970
9*10dd2532SchristosGMT) and produce strings with a 4-digit year.  At no point in the code
10*10dd2532Schristosfor top are the last two digits used to represent a year.
11*10dd2532Schristos
12*10dd2532SchristosTop and the Year 2038
13*10dd2532Schristos
14*10dd2532SchristosIn the year 2038 top will fail to represent the time of day correctly
15*10dd2532Schristoson 32-bit Unix operating systems.  This is due to a limitation in the
16*10dd2532Schristosway Unix represents time.  Top will only work on systems whose kernel
17*10dd2532Schristoscall "time" and C library call "ctime" have been adjusted to represent
18*10dd2532Schristostime with a value greater than 32 bits.  The exact date and time of
19*10dd2532Schristosthis failure is 3:14:08 January 19, 2038 GMT.  Note that this failure
20*10dd2532Schristoswill only affect the display of the current time in the output from
21*10dd2532Schristostop.
22*10dd2532Schristos
23*10dd2532Schristos
24*10dd2532SchristosTHERE IS ABSOLUTELY NO WARRANTY PROVIDED WITH THIS SOFTWARE.
25*10dd2532SchristosPlease see the contents of the file "LICENSE" for further
26*10dd2532Schristosinformation.
27