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 » time format from no. of seconds
time format from no. of seconds [message #10032] Fri, 15 June 2007 14:17 Go to next message
qwerty is currently offline  qwerty
Messages: 130
Registered: May 2006
Experienced Member
hello,

can Ultimate++ make me a nice string time format("01:26:65") from number of seconds? :

3763 s -> 01:02:43

or do i have to do it manually?

thanx
Re: time format from no. of seconds [message #10036 is a reply to message #10032] Sun, 17 June 2007 11:24 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
qwerty wrote on Fri, 15 June 2007 08:17

hello,

can Ultimate++ make me a nice string time format("01:26:65") from number of seconds? :

3763 s -> 01:02:43

or do i have to do it manually?

thanx


struct Time : Date, RelOps< Time, Moveable<Time> > {
....
	void   Set(int64 scalar);
	int64  Get();
};

Time   operator+(Time a, int64 seconds);
Time   operator+(int64 seconds, Time a);
Time   operator-(Time a, int64 secs);
Time&  operator+=(Time& a, int64 secs);
Time&  operator-=(Time& a, int64 secs);
Re: time format from no. of seconds [message #10154 is a reply to message #10036] Fri, 22 June 2007 08:41 Go to previous message
qwerty is currently offline  qwerty
Messages: 130
Registered: May 2006
Experienced Member
erm, I didn't realized, that Time::Set(0) is 00:00:00 .
sorry for stupid questioning.
Previous Topic: How to get Directory-Name from String
Next Topic: HTML viewer definition
Goto Forum:
  


Current Time: Fri Apr 26 03:12:49 CEST 2024

Total time taken to generate the page: 0.87768 seconds