| | |
Convert minutes to time
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Mar 2008
Posts: 173
Reputation:
Solved Threads: 1
Hi,
I wonder if C++ has any inbuilt function where you can convert Minutes to time like this example:
I wonder if C++ has any inbuilt function where you can convert Minutes to time like this example:
70 minutes in time would be: 01:10•
•
Join Date: Nov 2008
Posts: 397
Reputation:
Solved Threads: 72
0
#2 Oct 15th, 2009
It doesn't have an inbuilt function (but I am sure they are in libraries)
BUT surely it is this
not exactly difficult to put into a function.
(A fraction of care is needed if using double values but the same principle.)
BUT surely it is this
c++ Syntax (Toggle Plain Text)
int totalMin=890; int min=total % 60 ; int hour = (total / 60) % 24; // etc
not exactly difficult to put into a function.
(A fraction of care is needed if using double values but the same principle.)
experience is the most expensive way to learn anything
![]() |
Similar Threads
- convert seconds to minutes, hours, days, months, years, etc. (C)
- How to convert UNIX time stamp to syatem time stamp (C++)
- time difference from time stamp (PHP)
- MySQL result set and time.h (C++)
- convert time to 24 hour minutes second (Java)
- increment time with for looping (PHP)
- Noob Help needed for Time problem (C++)
Other Threads in the C++ Forum
- Previous Thread: Can't get started: "no such file"...
- Next Thread: How To Capitalize ALL Letters using Toupper function
| Thread Tools | Search this Thread |
Tag cloud for C++
api application array arrays assignment beginner binary bitmap c++ c/c++ calculator char char* class classes code coding compile compiler console conversion convert count data database delete developer display dll email encryption error file forms fstream function functions game generator getline givemetehcodez graph homeworkhelper iamthwee ifstream image input int java lazy lib loop looping loops map math matrix memory multidimensional multiple newbie news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference return sorting string strings struct template templates text tree url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets





