Its displaying time always in GMT .
Instead of that is that ok to use __DATE__ and __TIME__ ?
What is the difference btw localtime and the above macro( __DATE__ and __TIME__ ) ?
Thanks in Advance.
#2: Author: DaveyC, Location: Perth, Western AustraliaPosted: Fri Jun 05, 2009 4:43 am __DATE__ and __TIME__ are compiler generated timestamps. That's a terrible idea and you should abandon it right now. They're constants!
If this is to do with POSIX(ON) it's probably displaying GMT because your systems programmers haven't setup the TZ environment variable in /etc/profile correctly. Give them a prod.
If you want to be consistent in both posix and non-posix environments you will have to chase control blocks and get the system time zone offset from the CVT extension block.