| class TDateTime |
A date and time object in which the individual components are accessible in human-readable form.
The individual components are: year, month, day, hour, minute, second and microsecond.
These components are stored as integers and all except the year are checked for validity when a TDateTime is constructed or assigned new values.
This class only supports getting and setting the entire date/time or any component of it. It does not support adding or subtracting intervals to or from a time. For functions which manipulate times, use class TTime.
| Public Member Functions | |
|---|---|
| TDateTime() | |
| TDateTime(TInt, TMonth, TInt, TInt, TInt, TInt, TInt) | |
| TInt | Day() |
| TInt | Hour() |
| TInt | MicroSecond() |
| TInt | Minute() |
| TMonth | Month() |
| TInt | Second() |
| IMPORT_C TInt | Set(TInt, TMonth, TInt, TInt, TInt, TInt, TInt) |
| IMPORT_C TInt | SetDay(TInt) |
| IMPORT_C TInt | SetHour(TInt) |
| IMPORT_C TInt | SetMicroSecond(TInt) |
| IMPORT_C TInt | SetMinute(TInt) |
| IMPORT_C TInt | SetMonth(TMonth) |
| IMPORT_C TInt | SetSecond(TInt) |
| IMPORT_C TInt | SetYear(TInt) |
| IMPORT_C TInt | SetYearLeapCheck(TInt) |
| TInt | Year() |
| Private Attributes | |
|---|---|
| TInt | iDay |
| TInt | iHour |
| TInt | iMicroSecond |
| TInt | iMinute |
| TMonth | iMonth |
| TInt | iSecond |
| TInt | iYear |
| IMPORT_C | TDateTime | ( | TInt | aYear, |
| TMonth | aMonth, | |||
| TInt | aDay, | |||
| TInt | aHour, | |||
| TInt | aMinute, | |||
| TInt | aSecond, | |||
| TInt | aMicroSecond | |||
| ) | ||||
| TInt | Day | ( | ) | const [inline] |
Gets the day component of the date/time.
The day. Offset from zero, so add one before displaying the day number.
| TInt | MicroSecond | ( | ) | const [inline] |
Gets the microsecond component of the date/time.
The microsecond.
| TMonth | Month | ( | ) | const [inline] |
Gets the month component of the date/time.
The month. EJanuary to EDecember. Offset from zero, so add one before displaying the month number.
| IMPORT_C TInt | Set | ( | TInt | aYear, |
| TMonth | aMonth, | |||
| TInt | aDay, | |||
| TInt | aHour, | |||
| TInt | aMinute, | |||
| TInt | aSecond, | |||
| TInt | aMicroSecond | |||
| ) | ||||
| TInt | Year | ( | ) | const [inline] |
Gets the year component of the date/time.
A negative value indicates a BC date.
The year