181 static int ReadClockTask();
190 static void OnClockRead(
int nResult);
192 unsigned char mSecond;
193 unsigned char mMinute;
196 unsigned char mMonth;
Stream of raw bytes, the base of the memory, file, and network streams.
Definition binstream.h:22
Local date and time of the console clock.
Definition datetime.h:14
unsigned char GetHour() const
Definition datetime.h:134
bool operator<(const DateTime &other) const
Report whether this date is earlier than another.
void SetHour(unsigned char nHour)
Definition datetime.h:139
void SetSecond(unsigned char nSecond)
Definition datetime.h:119
bool ReadClock()
Read the console clock.
void FormatDateTime(String &text) const
Write the date and time as "MM/DD/YYYY HH:MM:SS", or "DD.MM.YYYY HH:MM:SS" in the PAL build.
static void PollClock()
Start a read of the console clock on the worker thread once 30 seconds have passed since the last rea...
unsigned char GetMinute() const
Definition datetime.h:124
DateTime(unsigned int nSeconds)
Construct a date from a count of seconds ToSeconds() reported.
unsigned char GetMonth() const
Definition datetime.h:154
void SetMonth(unsigned char nMonth)
Definition datetime.h:159
void FormatShortDate(String &text) const
Write the date as "MM/DD/YY", or "DD.MM.YY" in the PAL build, the year counted from 2000.
void SetDay(unsigned char nDay)
Definition datetime.h:149
unsigned int ToSeconds() const
Report the date as a count of seconds, with 32-day months and 384-day years from 2000.
void FormatDate(String &text) const
Write the date as "MM/DD/YYYY", or "DD.MM.YYYY" in the PAL build.
unsigned char GetDay() const
Definition datetime.h:144
void FormatMonthDay(String &text) const
Write the month and the day as "MM/DD", or "DD.MM" in the PAL build.
unsigned char GetSecond() const
Definition datetime.h:114
unsigned char GetYear() const
Definition datetime.h:164
DateTime()=default
Construct a date whose fields are not set.
void SetYear(unsigned char nYear)
Definition datetime.h:169
void SetMinute(unsigned char nMinute)
Definition datetime.h:129
Text output stream.
Definition prnstream.h:16
Growable text buffer that is also a PrnStream.
Definition string.h:19
PrnStream & operator<<(PrnStream &stream, const DateTime &date)
Write a date and time as FormatDateTime() does.
BinStream & operator>>(BinStream &stream, DateTime &date)
Read the six bytes of a date.