wx.lib.CDate¶
Date and calendar classes and date utitility methods.
Functions Summary¶
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] |
|
Classes Summary¶
A date class |
|
A now date class |
Functions¶
- 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:
month (int) – the month
year (int) – the year
- 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:
year (int) – the year
month (int) – the month
day (int) – the day
- 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()¶