On Sun, Aug 04, 2002, Erez Doron wrote about "timezone": > hi > > i am writing a small app in C and i need to get the timezone > ( e.g. -2:00 for israel ) > how do i do that ? > > the timezone variable from <time.h> returns 0
Try running ctime(time(0)) (for example) before you read the "tzname" variable. See the ctime(3) manual. -- Nadav Har'El | Sunday, Aug 4 2002, 27 Av 5762 [EMAIL PROTECTED] |----------------------------------------- Phone: +972-53-245868, ICQ 13349191 |"I don't use drugs, my dreams are http://nadav.harel.org.il |frightening enough." -- M. C. Escher ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]