Trees | Indices | Help |
---|
|
object --+ | HolidayProvider
class holding the holidays throught the year(s)
|
|||
|
|||
(char,type(ddef),str,str,int) |
|
||
(Holiday,Holiday,Holiday,Holiday) |
|
||
|
|||
Holiday |
|
||
Style |
|
||
(str,str,Style) |
|
||
Inherited from |
|
|||
annual dict of events occuring annually, indexed by tuple (day,month). |
|||
cache for each year requested, all holidays occuring within that year (annual, monthly, easter-based etc.) are precomputed and stored into dict cache , indexed by a date() object
|
|||
cath_easter dict of events relative to the catholic easter Sunday, indexed by an integer days offset |
|||
fixed fixed date events, indexed by a date() object
|
|||
george events occuring on St George's day (orthodox calendar special computation) |
|||
monthly event occuring monthly, indexed by int day |
|||
orth_easter dict of events relative to the orthodox easter Sunday, indexed by an integer days offset |
|||
ycache set holding cached years; each new year requested, triggers a cache-fill operation |
|
|||
Inherited from |
|
initialize a
|
return tuple (etype,ddef,footer,header,flags)
Note: ddef is one of the following:
|
returns a 4-tuple of Holiday objects representing (beginning, end, first-day-of-month, rest) |
load a holiday file into the File Format:
type:
date*span and range date1-date2 supported only for date=YYYYMMDD (fixed) events flags: comma-separated list of the following:
Example: d|0101||New year's|off d|0501||Labour day|off ce|-2||Good Friday| ce|0||Easter|off ce|1||Easter Monday|off d|20130223-20130310|winter vacations (B)||multi
|
return a Holiday object for the specified date (y,m,d) or
Note:
If year y has not been requested before, the cache is
updated first with all holidays that belong in y, indexed by
|
return appropriate style object, depending on flags and dow
|
returns (header,footer,day_style)
|
|
annualdict of events occuring annually, indexed by tuple (day,month). Note each dict entry is actually a list of Holiday objects. This is also true for the other instance variables: monthly, fixed, orth_easter, george, cath_easter. |
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Sun Nov 30 23:24:14 2014 | http://epydoc.sourceforge.net |