Home » U++ Library support » U++ Core » Getting timezone or UTC offset?
Getting timezone or UTC offset? [message #23446] |
Tue, 20 October 2009 16:37  |
jeremy_c
Messages: 175 Registered: August 2007 Location: Ohio, USA
|
Experienced Member |
|
|
I am wondering about a U++ method to tell me the timezone offset or to get the time in UTC. I am thinking that it should be there but I'm just missing it somewhere.
Jeremy
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Getting timezone or UTC offset? [message #24552 is a reply to message #24550] |
Sat, 23 January 2010 23:48   |
 |
mirek
Messages: 14255 Registered: November 2005
|
Ultimate Member |
|
|
jeremy_c wrote on Sat, 23 January 2010 16:11 |
luzr wrote on Sat, 23 January 2010 14:32 |
Shire wrote on Sun, 10 January 2010 02:57 | IMHO, GetUTCTime() and GetSysTime() is not quite correct.
Better and correct name for GetSysTime is GetLocalTime.
|
I agree, but 'Sys' has to stay - too many code written already.
|
I wonder if GetLocalTime shouldn't be a define and from here on out encourage people to use GetLocalTime simply for clarity in their own apps.
Jeremy
|
Does not need to be #define, Time GetLocalTime() { return GetSysTime(); } (or vice versa) would work as well.
Still, at this stage, IMO it is nitpicking. After all, you set your PC time in BIOS to your local time -> I would say system time is local then...
Mirek
|
|
|
|
|
Goto Forum:
Current Time: Sat Apr 26 14:47:01 CEST 2025
Total time taken to generate the page: 0.00628 seconds
|