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