#include <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
:
Member functions
IMPORT_C static TTime NullTTime();
Description
Gets a TTime
with a null value.
Return value
IMPORT_C static TTime MaxTTime();
Description
Gets the maximum time value which can be held in a TTime
object.
Return value
IMPORT_C static TTime MinTTime();
Description
Gets the minimum time value which can be held in a TTime
object.
Return value
IMPORT_C static 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.
|
|
IMPORT_C static 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.
|
|
IMPORT_C static 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.
|
|