* The arguments are the number of minutes of time
* you are westward from Greenwich and whether DST is in effect.
* giving the name of the local timezone.
* Sorry, I don't know all the names.
4*60, "AST", "ADT", /* Atlantic */
5*60, "EST", "EDT", /* Eastern */
6*60, "CST", "CDT", /* Central */
7*60, "MST", "MDT", /* Mountain */
8*60, "PST", "PDT", /* Pacific */
0, "GMT", 0, /* Greenwich */
char *timezone(zone
, dst
)
register struct zone
*zp
;
for (zp
=zonetab
; zp
->offset
!=-1; zp
++)
sprintf(czone
, "GMT%s%d:%02d", sign
, zone
/60, zone
%60);