Structure to hold a date and time. More...
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
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.
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. |
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. |
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. |
Convert a TimeDate_t into a Mac HFS time.
Convert the timestamp value to the MacOS file system from a Burgerlib TimeDate_t structure.
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 |
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 |
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 |
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 |
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 |
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. |
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".