Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date and Time calculations

Status
Not open for further replies.

TheObserver

Programmer
Mar 26, 2002
91
US
Are there any existing libraries to do date and time calculations, or any examples that I could be pointed to?

IE, I would like to, in one case, take in a date and add or subtract a certain number of hours, minutes, days, whatever.

Another case would be to take two days and determine the amount of time/days/time units between the two.

I can see needing to write these from scratch, but I wanted to get a consensus on whether these are already in existance (no need to reinvent the wheel).

Thanks for your time.
 
You can google for the library. This is a very standard requrement and I am sure a lot of people need it. I think you will find a tested code for this on the net.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top