Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » Getting timezone or UTC offset?
Re: Getting timezone or UTC offset? [message #24552 is a reply to message #24550] Sat, 23 January 2010 23:48 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13980
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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Bug?: Command line arguments passing problem (Windows)
Next Topic: VC2010
Goto Forum:
  


Current Time: Mon May 13 15:07:57 CEST 2024

Total time taken to generate the page: 0.02650 seconds