[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
DateTime() constructor
From: |
Mike Suchoff |
Subject: |
DateTime() constructor |
Date: |
Tue, 28 Jan 2003 10:27:12 -0500 |
In default constructor of DateTime
DateTime::DateTime() : Date(), Time() {}
The separate calls to Date() and Time() will each make a different call to
operating system for current time.
If call to Date() returns 12/31/2002 23:59:59 and call to Time() returns
1/1/2003 0:0:0 then you end up with value that is off by 24 hours
(12/31/2002 0:0:0).
- DateTime() constructor,
Mike Suchoff <=