8#if !defined(OWL_TIME_H)
12#if defined(BI_HAS_PRAGMA_ONCE)
35static const unsigned long secFrom_Jan_1_1901_to_Jan_1_1970 = 2177452800UL;
41 friend TDate::TDate(
const TTime & );
56 int CompareTo(
const TTime & )
const;
57 unsigned Hash()
const;
92 void operator+=(
long s);
93 void operator-=(
long s);
98 static int PrintDate(
int );
102 static int AssertDate(
const TDate & );
109 static int PrintDateFlag;
176 return *
this >=
a && *
this <=
b;
182 return TTime(t.Sec+s);
188 return TTime(t.Sec+s);
194 return TTime(t.Sec-s);
200 return TTime(t.Sec-s);
The TDate class represents a date.
TFileTime is a class derived from the structure FILETIME.
TSystemTime is a class derived from the structure SYSTEMTIME.
The TTime class encapsulates time functions and characteristics.
int Between(const TTime &a, const TTime &b) const
Returns 1 if the target date is between TTime a and TTime b, 0 otherwise.
void operator++()
Increments the time by 1 second.
int operator!=(const TTime &t) const
Returns 1 if the target time is not equal to time t, 0 otherwise.
unsigned Hash() const
Hash function: Returns seconds since January 1, 1901.
int operator<(const TTime &t) const
Returns 1 if the target time is less than time t, 0 otherwise.
static const TDate MaxDate
The maximum valid date for TTime objects.
int operator==(const TTime &t) const
Returns 1 if the target time is equal to time t, 0 otherwise.
ClockTy Seconds() const
Returns seconds since January 1, 1901.
int operator>=(const TTime &t) const
Returns 1 if the target time is greater than or equal to time t, 0 otherwise.
int operator>(const TTime &t) const
Returns 1 if the target time is greater than time t, 0 otherwise.
void operator-=(long s)
Subtracts s seconds from the time.
TTime()
Construct TTime with current time (seconds since Jan 1, 1901).
void operator--()
Decrements the time by 1 second.
void operator+=(long s)
Adds s seconds to the time.
int operator<=(const TTime &t) const
Returns 1 if the target time is less than or equal to time t, 0 otherwise.
int IsValid() const
Returns 1 if this TTime object contains a valid time, 0 otherwise.
static const TDate RefDate
The minimum valid date for TTime objects: January 1, 1901.
ipstream, a specialized input stream derivative of pstream, is the base class for reading (extracting...
Base class for writing streamable objects.
Object Windows Library (OWLNext Core)
TTime operator+(const TTime &t, long s)
Adds s seconds to time t.
TTime operator-(const TTime &t, long s)
Performs subtraction, in seconds, between s and t.
unsigned HashValue(TDate &d)