#include <e32std.h>
class Time |
Public Member Functions | |
---|---|
IMPORT_C TInt | DaysInMonth(TInt, TMonth) |
IMPORT_C TBool | IsLeapYear(TInt) |
IMPORT_C TInt | LeapYearsUpTo(TInt) |
IMPORT_C TTime | MaxTTime() |
IMPORT_C TTime | MinTTime() |
IMPORT_C TTime | NullTTime() |
A utility class whose functions may be used by the other date/time related classes.
Gets the number of leap years between year 0 (nominal Gregorian) and the specified year, inclusive.
The calendar used is nominal Gregorian with astronomical numbering (where year 2000 = 2000 AD, year 1600 = 1600 AD, year 1 = 1 AD, and so year 0 = 1 BC, year -100 = 101 BC). No days are removed from September 1752 or any other month. Leap year calculation before 1600 uses the Julian method of every four years, even for years which are exactly divisible by 100 but not by 400. Thus leap years include: 1200, 1300, 1400, 1500, 1600 and 2000; non-leap years include: 1601, 1700, 1800, 1900 and 2100.
Parameters | |
---|---|
aYear | The final year in the range to search. If negative, the function will return a negative number of leap years. |