1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134
|
.. wxPython Phoenix documentation
This file was generated by Phoenix's sphinx generator and associated
tools, do not edit by hand.
Copyright: (c) 2011-2018 by Total Control Software
License: wxWindows License
.. include:: headings.inc
.. module:: wx.lib.CDate
.. currentmodule:: wx.lib.CDate
.. highlight:: python
.. _wx.lib.CDate:
==========================================================================================================================================
|phoenix_title| **wx.lib.CDate**
==========================================================================================================================================
Date and calendar classes and date utitility methods.
|function_summary| Functions Summary
====================================
================================================================================ ================================================================================
:func:`~wx.lib.CDate.dayOfWeek` Get day of week from a julian day
:func:`~wx.lib.CDate.daysPerMonth` Get the number of days for the month.
:func:`~wx.lib.CDate.FillDate`
:func:`~wx.lib.CDate.FormatDay`
:func:`~wx.lib.CDate.FromJulian` Convert a julian date
:func:`~wx.lib.CDate.isleap` Verify if year is a leap year.
:func:`~wx.lib.CDate.julianDay` Convert a date to Julian
:func:`~wx.lib.CDate.leapdays` Return number of leap years in range [y1, y2]
:func:`~wx.lib.CDate.TodayDay`
================================================================================ ================================================================================
|
|class_summary| Classes Summary
===============================
================================================================================ ================================================================================
:ref:`~wx.lib.CDate.Date` A date class
:ref:`~wx.lib.CDate.now` A now date class
================================================================================ ================================================================================
|
.. toctree::
:maxdepth: 1
:hidden:
wx.lib.CDate.Date
wx.lib.CDate.now
Functions
------------
.. function:: dayOfWeek(julian)
Get day of week from a julian day
:param `julian`: the julian day
:returns: the day of week as an integer and Monday = 1
.. function:: daysPerMonth(month, year)
Get the number of days for the month.
:param int `month`: the month
:param int `year`: the year
:returns: the number of days in the requested month
.. function:: FillDate(val)
.. function:: FormatDay(value)
.. function:: FromJulian(julian)
Convert a julian date
:param int `julian`: the julian date to convert
:returns: year, month day as integers
.. function:: isleap(year)
Verify if year is a leap year.
:param int `year`: the year to check
:return: ``True`` or False
.. function:: julianDay(year, month, day)
Convert a date to Julian
:param int `year`: the year
:param int `month`: the month
:param int `day`: the day
:returns: the julian date number
.. function:: leapdays(y1, y2)
Return number of leap years in range [y1, y2]
Assume y1 <= y2 and no funny (non-leap century) years
.. function:: TodayDay()
|