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++ Library : Other (not classified elsewhere) » [FEATURE REQUEST] Time to UTC ISO 8601 and UTC ISO 8601 to Time
Re: [FEATURE REQUEST] Time to UTC ISO 8601 and UTC ISO 8601 to Time [message #18475 is a reply to message #18404] Thu, 02 October 2008 21:32 Go to previous messageGo to previous message
captainc is currently offline  captainc
Messages: 278
Registered: December 2006
Location: New Jersey, USA
Experienced Member
Simple function I used in my program:
Time UTCStrToTime(String utc_str){
	//utc example: 2006-01-04T21:59:11
	int year = StrInt(utc_str.Left(4));
	int month = StrInt(utc_str.Mid(5,2));
	int day = StrInt(utc_str.Mid(8,2));
	int hour = StrInt(utc_str.Mid(11,2));
	int minute = StrInt(utc_str.Mid(14,2));
	int second = StrInt(utc_str.Mid(17,2));
	return Time(year, month, day, hour, minute, second);
}

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Small Correction about Vista/GLCtrl corrections
Next Topic: Missing methods in Win32 version of GLCtrl
Goto Forum:
  


Current Time: Mon Jun 30 19:45:29 CEST 2025

Total time taken to generate the page: 0.03465 seconds