Subject: gmt offset
To: None <email@example.com>
From: Andrew Brown <firstname.lastname@example.org>
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" >-----|
email@example.com * "ah! i see you have the internet
firstname.lastname@example.org (Andrew Brown) that goes *ping*!"
email@example.com * "information is power -- share the wealth."