Location:
e32std.h
Link against: euser.lib
class Time;
Description
A utility class whose functions may be used by the other date/time related classes.
Members
Defined in Time
:
DaysInMonth()
, IsLeapYear()
, LeapYearsUpTo()
, MaxTTime()
, MinTTime()
, NullTTime()
static IMPORT_C TTime NullTTime();
Description
Gets a TTime
with a null value.
Return value
static IMPORT_C TTime MaxTTime();
Description
Gets the maximum time value which can be held in a TTime
object.
Return value
static IMPORT_C TTime MinTTime();
Description
Gets the minimum time value which can be held in a TTime
object.
Return value
static IMPORT_C TInt DaysInMonth(TInt aYear, TMonth aMonth);
Description
Gets the number of days in a month.
Parameters
TInt aYear |
The year. Must be specified because of leap years.
|
TMonth aMonth |
Month, from EJanuary to EDecember.
|
|
Return value
TInt
|
The number of days in the month.
|
|
static IMPORT_C TBool IsLeapYear(TInt aYear);
Description
Tests whether a year is a leap year.
Parameters
TInt aYear |
The year of interest.
|
|
Return value
TBool
|
True if leap year, False if not.
|
|
static IMPORT_C TInt LeapYearsUpTo(TInt aYear);
Description
Gets the number of leap years between 0 AD nominal Gregorian and the specified year - inclusive.
Parameters
TInt aYear |
The final year in the range to search. If negative, the function will return a negative number of leap years.
|
|
Return value
TInt
|
The number of leap years between 0 AD nominal Gregorian and aYear.
|
|