Murl::System::DateTime Class Reference
The date and time class provides date and time members. More...
#include "murl_system_time.h"
Public Member Functions | |
DateTime () | |
The default constructor. More... | |
DateTime (const Time &time) | |
Constructor taking a time object. More... | |
String | ToString () const |
Get the string representation of the object. More... | |
Static Public Member Functions | |
static DateTime | GetNow () |
Get the date and time from now. More... | |
Public Attributes | |
UInt32 | mHour |
The hours since midnight in range [0 . . 23]. | |
UInt32 | mMinute |
The minutes after the hour in range [0 . . 59]. | |
UInt32 | mSecond |
The seconds after the minute in range [0 . . 59]. | |
SInt32 | mYear |
The year anno domini. | |
UInt32 | mMonth |
The month in range [1 . . 12]. | |
UInt32 | mDay |
The day in range [1 . . 31]. | |
UInt32 | mDayOfWeek |
The day of week in range [0 . . 6] == [Monday . . Sunday]. | |
UInt32 | mDayOfYear |
The day of year in range [0 . . 365]. | |
Detailed Description
The date and time class provides date and time members.
Constructor & Destructor Documentation
◆ DateTime() [1/2]
Murl::System::DateTime::DateTime | ( | ) |
The default constructor.
All members are initialized to zero.
◆ DateTime() [2/2]
Murl::System::DateTime::DateTime | ( | const Time & | time | ) |
Constructor taking a time object.
- Parameters
-
time The number of seconds since 00:00 hours, Jan 1, 1970 UTC.
Member Function Documentation
◆ GetNow()
|
static |
Get the date and time from now.
- Returns
- The DateTime object containing the date and time from now.
◆ ToString()
String Murl::System::DateTime::ToString | ( | ) | const |
Get the string representation of the object.
- Returns
- The string representation of the object.
The documentation for this class was generated from the following file:
- murl_system_time.h