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 #23478 is a reply to message #23477] Thu, 22 October 2009 09:32 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3361
Registered: August 2008
Senior Veteran
Hello Jeremy_c

With an small change in GetUtcTime they work well. Here it is the changed version:

Time GetUtcTime() {
	time_t gmt = time(NULL);
	struct tm *utc = gmtime(&gmt);
	return Time(utc->tm_year + 1900, utc->tm_mon + 1, utc->tm_mday, 
		utc->tm_hour, utc->tm_min, utc->tm_sec);
}

Best regards
Koldo


Best regards
IƱaki
 
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 09:41:31 CEST 2024

Total time taken to generate the page: 0.02714 seconds