PDA

View Full Version : How can I transfer UTC time to local time?


xhd0926
09-16-2003, 07:49 AM
Can I use LOCALTIMEOFFSET()?
but I don't see what mean the "boolean * pbDaylightSavings"!!
what is the Parameter? which type is it?
help me!
thank you!!!
//int32 LOCALTIMEOFFSET(boolean * pbDaylightSavings)

ruben
09-16-2003, 09:35 AM
boolean bIsDayLight;
int32 iBias = LOCALTIMEOFFSET( &bIsDayLight );
int zoneoffset = iBias / 3600; (in hours timezone offset from UTC)