Time Class Reference
Detailed Description
A utility class whose functions may be used by the other date/time related classes.
Member Function Documentation
DaysInMonth ( TInt, TMonth )
Gets the number of days in a month.
Parameter | Description | aYear | The year. Must be specified because of leap years. |
aMonth | Month, from EJanuary to EDecember. |
Returns: The number of days in the month.
IsLeapYear ( TInt )
Tests whether a year is a leap year.
Parameter | Description | aYear | The year of interest. |
Returns: True if leap year, False if not.
LeapYearsUpTo ( TInt )
IMPORT_C TInt | LeapYearsUpTo | ( | TInt | aYear | ) | [static] |
Gets the number of leap years between 0 AD nominal Gregorian and the specified year - inclusive.
Parameter | Description | aYear | The final year in the range to search. If negative, the function will return a negative number of leap years. |
Returns: The number of leap years between 0 AD nominal Gregorian and aYear.
MaxTTime ( )
IMPORT_C TTime | MaxTTime | ( | ) | [static] |
Gets the maximum time value which can be held in a TTime object.
Returns: The maximum TTime value.
MinTTime ( )
IMPORT_C TTime | MinTTime | ( | ) | [static] |
Gets the minimum time value which can be held in a TTime object.
Returns: The minimum TTime value.
NullTTime ( )
IMPORT_C TTime | NullTTime | ( | ) | [static] |
Gets a TTime with a null value.
Returns: TTime object with a null value.