home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / mod.std.unix.v5 / text0066.txt < prev    next >
Encoding:
Internet Message Format  |  1987-06-30  |  1.2 KB

  1. Date: 6 Mar 86 23:09:30 EST (Thu)
  2. From: floyd!opus!ka@SEISMO.CSS.GOV (Kenneth Almquist)
  3. Organization: Bell Labs, Holmdel, NJ
  4.  
  5. I basicly agree with Robert Elz.  A few comments:
  6.  
  7. 1)  I suggest adding an entry for the timezone name to the tm
  8. structure.  Something like
  9.  
  10.     char tm_zone[6];
  11.  
  12. I expect that time zone names will not exceed 5 characters, although
  13. the size of this array need not be specified in the standard.  I don't
  14. suggest making tm_zone a character pointer because if that were done
  15. any implementation would be complicated by the need to ensure that
  16. tm_zone was still valid after settz was called with a different time
  17. zone.
  18.  
  19. 2)  The routine name is gmtime, not gmttime.
  20.  
  21. 3)  Removing the explicit mention of a time zone directory from the
  22. standard means that there is no longer a way to find the offset of time
  23. zone that a time zone name represents.  How about providing a routine
  24. to do this:
  25.  
  26.     long tzoffset(tzname)  char *tzname;
  27.  
  28. which takes a time zone name and returns the offset of that time zone
  29. in seconds with respect to GMT?
  30.                 Kenneth Almquist
  31.                 ihnp4!houxm!hropus!ka    (official name)
  32.                 ihnp4!opus!ka        (shorter path)
  33.  
  34. Volume-Number: Volume 5, Number 67
  35.  
  36.