Structure to hold a date and time. More...
Public Member Functions | |
void | Clear (void) noexcept |
Zero out all entries. | |
void | GetTime (void) noexcept |
Obtain the current localized time. | |
void | TimeToString (char *pOutput) const noexcept |
Convert the time to 23:23:21. | |
void | TimeToStringPM (char *pOutput) const noexcept |
Convert the time to 11:23:21PM. | |
void | DateToString (char *pOutput) const noexcept |
Convert the date to 10/30/63. | |
void | DateToStringVerbose (char *pOutput) const noexcept |
Convert the date to Sunday, October 30, 1963. | |
eError | Read (InputMemoryStream *pInput) noexcept |
Read the time from a InputMemoryStream. | |
eError | Write (OutputMemoryStream *pOutput) const noexcept |
Write the time into a OutputMemoryStream. | |
int | Compare (const TimeDate_t *pInput) const noexcept |
Compares two Burger::TimeDate_t records for equality. | |
uint_t | CalcDayOfWeek (void) noexcept |
Given a day, month and year, return the day of the week. | |
eError | LoadTimeT (uintptr_t uTimeT) noexcept |
Convert a time_t to a TimeDate_t. | |
eError | StoreTimeT (uintptr_t *pTimeT) const noexcept |
Convert a TimeDate_t to a time_t. | |
eError | Load (const timespec *pTimeSpec) noexcept |
Convert a timespec to a Burger::TimeDate_t. | |
eError | Store (timespec *pTimeSpec) const noexcept |
Convert a Burger::TimeDate_t to a timespec. | |
eError | Load (const _SYSTEMTIME *pSystemTime) noexcept |
eError | Store (_SYSTEMTIME *pSystemTime) const noexcept |
eError | Load (const _FILETIME *pFileTime) noexcept |
Convert a Windows FILETIME into a Burger::TimeDate_t. | |
eError | Store (_FILETIME *pFileTime) const noexcept |
Convert a Burger::TimeDate_t into a Windows FILETIME. | |
void | LoadMSDOS (uint32_t uMSDOSTime) noexcept |
Convert an MSDOS FILETIME into a Burger::TimeDate_t. | |
uint32_t | StoreMSDOS (void) const noexcept |
Convert a Burger::TimeDate_t into an MSDOS FILETIME. | |
uint_t | Load (const UTCDateTime *pUTCDateTime) noexcept |
Convert a MacOS UTCDateTime into a TimeDate_t. | |
uint_t | Store (UTCDateTime *pUTCDateTime) const noexcept |
Convert a TimeDate_t into a MacOS UTCDateTime. | |
void | LoadFileSeconds (uint32_t uTime) noexcept |
Convert a Mac HFS time into a TimeDate_t. | |
uint32_t | GetFileSeconds (void) const noexcept |
Convert a TimeDate_t into a Mac HFS time. | |
uint_t | Load (double dNSTimeInterval) noexcept |
Convert a MacOSX NSTimeInterval into a Burger::TimeDate_t. | |
uint_t | Store (double *pNSTimeInterval) const noexcept |
Convert a Burger::TimeDate_t into a MacOSX NSTimeInterval. | |
uint_t | Load (const SceDateTime *pSceDateTime) noexcept |
Convert a Playstation Vita SceDateTime into a Burger::TimeDate_t. | |
uint_t | Store (SceDateTime *pSceDateTime) const noexcept |
Convert a Burger::TimeDate_t into a SceDateTime. | |
Public Attributes | |
uint32_t | m_uYear |
Year "2009". | |
uint16_t | m_usMilliseconds |
0-999 | |
uint8_t | m_bMonth |
1-12 | |
uint8_t | m_bDay |
1-31 | |
uint8_t | m_bDayOfWeek |
0-6 | |
uint8_t | m_bHour |
0-23 | |
uint8_t | m_bMinute |
0-59 | |
uint8_t | m_bSecond |
0-59 | |
Friends | |
uint_t | operator== (const TimeDate_t &rInput1, const TimeDate_t &rInput2) noexcept |
Return TRUE if the first is equal to the second. | |
uint_t | operator!= (const TimeDate_t &rInput1, const TimeDate_t &rInput2) noexcept |
Return TRUE if the first is not equal to the second. | |
uint_t | operator> (const TimeDate_t &rInput1, const TimeDate_t &rInput2) noexcept |
Return TRUE if the first is greater than to the second. | |
uint_t | operator>= (const TimeDate_t &rInput1, const TimeDate_t &rInput2) noexcept |
Return TRUE if the first is greater than or equal to the second. | |
uint_t | operator< (const TimeDate_t &rInput1, const TimeDate_t &rInput2) noexcept |
Return TRUE if the first is less than to the second. | |
uint_t | operator<= (const TimeDate_t &rInput1, const TimeDate_t &rInput2) noexcept |
Return TRUE if the first is less than or equal to the second. | |
Structure to hold a date and time.
This structure contains all the information of the date and time in a human readable format
|
noexcept |
Given a day, month and year, return the day of the week.
0 = Sunday, 1 = Monday, 6 = Saturday.
Click here for information on how day was calculated.
|
noexcept |
Zero out all entries.
Initialize all entries to zero. This is considered an error state.
|
noexcept |
Compares two Burger::TimeDate_t records for equality.
Compares two TimeDate_t records and return -1 if the this
is less than the record passed. Return 0 if they are the same and 1 if the parameter is less than the this
.
pInput | Pointer to an initialized TimeDate_t record. |
|
noexcept |
Convert the date to 10/30/63.
Convert the date into a string that is in the format of MM/DD/YY
pOutput | C char buffer at least 9 bytes long to receive the string. |
|
noexcept |
Convert the date to Sunday, October 30, 1963.
Convert the date into a string that is in the format of "Sunday, October 30, 1963"
pOutput | C char buffer at least 64 bytes long to receive the string. |
|
noexcept |
Convert a TimeDate_t into a Mac HFS time.
Convert the timestamp value to the MacOS file system from a Burgerlib TimeDate_t structure.
|
noexcept |
Obtain the current localized time.
A query is made to the target platform and the structure is filled in with the current date and time.
|
noexcept |
Convert a Windows FILETIME into a Burger::TimeDate_t.
|
noexcept |
|
noexcept |
Convert a Playstation Vita SceDateTime into a Burger::TimeDate_t.
|
noexcept |
Convert a timespec to a Burger::TimeDate_t.
The time is assumed to be GMT and will be converted to local time before stored into the Burger::TimeDate_t structure
pTimeSpec | A timespec value to retrieve the time from |
|
noexcept |
Convert a MacOS UTCDateTime into a TimeDate_t.
pUTCDateTime | Pointer to a UTCDateTime to convert to a TimeDate_t |
|
noexcept |
|
noexcept |
Convert a Mac HFS time into a TimeDate_t.
Convert the timestamp value from the MacOS file system to a Burgerlib TimeDate_t structure.
uTime | Time in seconds from midnight Jan 1st, 1904 |
|
noexcept |
Convert an MSDOS FILETIME into a Burger::TimeDate_t.
http://msdn.microsoft.com/en-us/library/windows/desktop/ms724247(v=vs.85).aspx
uMSDOSTime | Time/date from an MSDOS file |
|
noexcept |
Convert a time_t to a TimeDate_t.
The time is assumed to be GMT and will be converted to local time before stored into the TimeDate_t structure
uTimeT | A time_t value obtained by a call to the "C" library. |
|
noexcept |
Read the time from a InputMemoryStream.
Read in a stream of 12 bytes and store it into the structure
pInput | Pointer to a valid InputMemoryStream |
|
noexcept |
Convert a Burger::TimeDate_t into a Windows FILETIME.
|
noexcept |
|
noexcept |
|
noexcept |
Convert a Burger::TimeDate_t into a SceDateTime.
|
noexcept |
Convert a Burger::TimeDate_t to a timespec.
The time is assumed to be local and will be converted to GMT before stored into the timespec structure
pTimeSpec | A timespec value to receive the time |
|
noexcept |
Convert a TimeDate_t into a MacOS UTCDateTime.
pUTCDateTime | Pointer to a UTCDateTime structure to fill in with the time/date |
|
noexcept |
Convert a Burger::TimeDate_t into an MSDOS FILETIME.
http://msdn.microsoft.com/en-us/library/windows/desktop/ms724247(v=vs.85).aspx
|
noexcept |
Convert a TimeDate_t to a time_t.
The time is assumed to be local and will be converted to GMT time before stored into the time_t value
pTimeT | A time_t value to receive the new time |
|
noexcept |
Convert the time to 23:23:21.
Convert the time into a string that is in the format of HH:MM:SS. Uses a 24 hour (Military time) format.
pOutput | C char buffer at least 9 bytes long to receive the string. |
|
noexcept |
Convert the time to 11:23:21PM.
Convert the time into a string that is in the format of HH:MM:SSAM Uses a 12 hour (AM/PM) format.
pOutput | C char buffer at least 11 bytes long to receive the string. |
|
noexcept |
Write the time into a OutputMemoryStream.
Write 12 bytes into the stream to record the time
pOutput | Pointer to a valid OutputMemoryStream |
|
friend |
Return TRUE if the first is not equal to the second.
rInput1 | Burger::TimeDate_t to test |
rInput2 | Burger::TimeDate_t to test against |
|
friend |
Return TRUE if the first is less than to the second.
rInput1 | Burger::TimeDate_t to test |
rInput2 | Burger::TimeDate_t to test against |
|
friend |
Return TRUE if the first is less than or equal to the second.
rInput1 | Burger::TimeDate_t to test |
rInput2 | Burger::TimeDate_t to test against |
|
friend |
Return TRUE if the first is equal to the second.
rInput1 | Burger::TimeDate_t to test |
rInput2 | Burger::TimeDate_t to test against |
|
friend |
Return TRUE if the first is greater than to the second.
rInput1 | Burger::TimeDate_t to test |
rInput2 | Burger::TimeDate_t to test against |
|
friend |
Return TRUE if the first is greater than or equal to the second.
rInput1 | Burger::TimeDate_t to test |
rInput2 | Burger::TimeDate_t to test against |
uint8_t Burger::TimeDate_t::m_bDay |
1-31
uint8_t Burger::TimeDate_t::m_bDayOfWeek |
0-6
uint8_t Burger::TimeDate_t::m_bHour |
0-23
uint8_t Burger::TimeDate_t::m_bMinute |
0-59
uint8_t Burger::TimeDate_t::m_bMonth |
1-12
uint8_t Burger::TimeDate_t::m_bSecond |
0-59
uint16_t Burger::TimeDate_t::m_usMilliseconds |
0-999
uint32_t Burger::TimeDate_t::m_uYear |
Year "2009".