![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Programmer
Join Date: Oct 2005
Location: Portugal
Posts: 53
Rep Power: 3
![]() |
Difference between dates
Hi there
![]() There's any function on C/C++ to claculate the difference of two dates? |
|
|
|
|
|
#2 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
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.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|