Click here to Skip to main content
15,891,316 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am trying to convert given number of seconds e.g 97027200 to normal date that is, month/day/ year hr:min:sec where the seconds are counted from 1/1/2008 using C++.
Posted
Comments
Richard MacCutchan 22-May-15 7:08am    
And what is your problem with this calculation?

1 solution

Try getting the number of seconds unix time for that date, then add your seconds and convert back...
(the functions are there...)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900