| | |
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: 392
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 |
api array arrays based beginner binary bitmap c++ c/c++ calculator char class classes code compile compiler console conversion count delete deploy desktop directshow dll download dynamic dynamiccharacterarray encryption error file forms fstream function functions game getline givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux list loop looping loops map math matrix memory news node output parameter pointer problem program programming project proxy python read recursion recursive reference return rpg string strings struct temperature template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets





