home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / mod.std.unix.v7 / text0002.txt < prev    next >
Encoding:
Text File  |  1987-06-30  |  2.1 KB  |  52 lines

  1. [ I believe this is from Mark Crispin.  -mod ]
  2.  
  3. From: @SUMEX-AIM.ARPA:MRC@PANDA 
  4. Date: Mon 15 Sep 86 10:32:48-PDT
  5. Postal-Address: 1802 Hackett Ave.; Mountain View, CA  94043-4431
  6. Phone: +1 (415) 968-1052
  7.  
  8. Has anyone taken the effort to see how other operating systems handle
  9. this problem?  If not, I'll throw one example I'm quite familiar with
  10. into the pot.
  11.  
  12. TOPS-20 uses a 36-bit value for the time (after all it runs on a 36-bit
  13. machine).  This is a fixed point number with the decimal point located
  14. between the halfwords expressing the number of days since midnight, 17
  15. November 1858.  Time -1 is reserved to mean "current time", therefore
  16. the latest representable time on TOPS-20 is 7 August 2576, one second
  17. before midnight.  I guess sometime in August 2576 we'll have to fix
  18. TOPS-20 to add another word to the time!  All this is in GMT, by the
  19. way, with no adjustments for leap seconds.
  20.  
  21. Local time is strictly a user interface consideration.  The default
  22. routines use the following cells to determine how to present the time:
  23. TIMZON    The number of hours local time lags GMT.  +12 and -12 are the
  24.     same zone on different sides of the International Date Line
  25. DSTFLG    Daylight Saving Time flag:
  26.         NEVDST    never use Daylight Saving Time
  27.         ALLDST    always use Daylight Saving Time
  28.         0    use algorithm
  29.  
  30. DSTBGN    The year in which the algorithm became effective
  31.  
  32. DSTON    The last day of the year on which DST may start
  33.  
  34. DSTOFF    The last day of the year on which DST may end
  35.  
  36. The present algorithm starts on the Sunday preceeding DSTON and ends
  37. on the Sunday preceeding DSTOFF.  It started in 1975, so it makes no
  38. attempt to handle the energy conservation rules of earlier years.
  39.  
  40. The user interface will accept times in which no zone is specified
  41. ("GMT" or "PST" or "PDT", etc. will always override the TIMZON and
  42. DST flags) and convert them into the GMT representation.  Times are
  43. output in the "current local timezone/DST" according to the rules
  44. unless written otherwise.
  45.  
  46. This is all pretty minimal stuff.  I think Unix should bite the bullet
  47. and use at least a 48 bit time representation.
  48. -------
  49.  
  50. Volume-Number: Volume 7, Number 3
  51.  
  52.