Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   C++ (http://www.programmingforums.org/forum15.html)
-   -   Difference between dates (http://www.programmingforums.org/showthread.php?t=7625)

-=PARADOX=- Dec 17th, 2005 1:44 PM

Difference between dates
 
Hi there :)

There's any function on C/C++ to claculate the difference of two dates?

DaWei Dec 17th, 2005 2:01 PM

Dates are not "real", they're just conventional and there are a number of conventions. Many computerized date handlers are based on the number of seconds that have elapsed since the "epoch" (January 1, 1970, if I recall correctly). Any number of functions dealing with this are available in a number of languages. Consult your documentation. Search terms like "date" and "time" are usually useful.

-=PARADOX=- Dec 17th, 2005 2:25 PM

I've been look around, and I've found a solution...
For those curious out there, here are the links:

data.h
data.cpp


All times are GMT -5. The time now is 6:05 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC