Use wxINT64_MIN for the value of invalid wxDateTime
Use 0xffffffffffffffff instead of the strange 0xffffffff00000000 that we used before, for some reason.
This commit is contained in:
committed by
Vadim Zeitlin
parent
5e5d872150
commit
a922d576ec
@@ -450,7 +450,7 @@ public:
|
|||||||
// ------------------------------------------------------------------------
|
// ------------------------------------------------------------------------
|
||||||
|
|
||||||
// default ctor does not initialize the object, use Set()!
|
// default ctor does not initialize the object, use Set()!
|
||||||
wxDateTime() { m_time = wxLongLong(wxINT32_MIN, 0); }
|
wxDateTime() { m_time = wxINT64_MIN; }
|
||||||
|
|
||||||
// from time_t: seconds since the Epoch 00:00:00 UTC, Jan 1, 1970)
|
// from time_t: seconds since the Epoch 00:00:00 UTC, Jan 1, 1970)
|
||||||
inline wxDateTime(time_t timet);
|
inline wxDateTime(time_t timet);
|
||||||
@@ -704,7 +704,7 @@ public:
|
|||||||
// ------------------------------------------------------------------------
|
// ------------------------------------------------------------------------
|
||||||
|
|
||||||
// is the date valid?
|
// is the date valid?
|
||||||
inline bool IsValid() const { return m_time != wxInvalidDateTime.m_time; }
|
inline bool IsValid() const { return m_time != wxLongLong(wxINT64_MIN); }
|
||||||
|
|
||||||
// get the broken down date/time representation in the given timezone
|
// get the broken down date/time representation in the given timezone
|
||||||
//
|
//
|
||||||
|
Reference in New Issue
Block a user