phoenix_title wx.lib.CDate

Date and calendar classes and date utitility methods.

function_summary Functions Summary

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


class_summary Classes Summary

Date

A date class

now

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()