Date and calendar classes and date utitility methods.
Get day of week from a julian day |
|
Get the number of days for the month. |
|
Convert a julian date |
|
Verify if year is a leap year. |
|
Convert a date to Julian |
|
Return number of leap years in range [y1, y2] |
|
A date class |
|
A now date class |
Get day of week from a julian day
julian – the julian day
the day of week as an integer and Monday = 1
Get the number of days for the month.
month (int) – the month
year (int) – the year
the number of days in the requested month
Convert a julian date
julian (int) – the julian date to convert
year, month day as integers
Verify if year is a leap year.
year (int) – the year to check
True
or False
Convert a date to Julian
year (int) – the year
month (int) – the month
day (int) – the day
the julian date number
Return number of leap years in range [y1, y2] Assume y1 <= y2 and no funny (non-leap century) years