Subject: gmt offset
To: None <firstname.lastname@example.org>
From: Andrew Brown <email@example.com>
Date: 01/09/2001 14:31:09
is there a standardized way to determine one's offset from gmt for a
given timezone? or do i have to do it this way?
struct tm tm;
time_t now, gmt;
tm = *gmtime(&now);
gmt = mktime(&tm);
printf("now %d gmt %d diff %d\n", now, gmt, now - gmt);
and hmm...i wonder who would have to be poked in order to get the %z
format for strftime() ratified?
|-----< "CODE WARRIOR" >-----|
firstname.lastname@example.org * "ah! i see you have the internet
email@example.com (Andrew Brown) that goes *ping*!"
firstname.lastname@example.org * "information is power -- share the wealth."