Jump to: navigation, search

Calendar tools holidays

66 bytes added, 02:47, 4 October 2015
Adding your countries holidays
where each of the capitalized words would be filled in with appropriate values, as follows[]. All but NAME and VALUE are optional.
*'''COUNTRYNAME ''' => "United States", "China", etc. You don't have to make these countries, however. You can make these just a "holiday set" which could be "Christian", "Muslim", "Eastern European", etc. These names can be selected from a list when running calendar-related reports. You can use your own language for this name.*'''NAME ''' => the text to appear on the calendar*'''TYPE ''' => "secular", "religious", "personal", "informational" (This isn't currently used in the calendar, but could be. Use these keywords, untranslated.)*'''EXPRESSION ''' => a python expression that must be true for this to appear on the calendar. You can use y, m, and d variables (for year, month, and day, all integers). See VALUE for examples. *'''VALUE ''' =>
*** "2012/12/25"
*** "> dst(y, "eu")[1]" (Daylight Saving Time, "eu", end)
*** "> dow(y, m, d) == 1" (dow returns the iso weekday number, where Monday is 1 and Sunday is 7)
*'''YEAR ''' => "*" or an actual year. "*" means any year.*'''MONTH ''' => "*" or actual month number. "*" means any month.*'''DAY ''' => "*" or actual day number in month. "*" means any day.*'''NUMBER ''' => number of weekday in month. For example, "every 3rd Tuesday in April" would be "*/3/tue/apr". NUMBER can also be negative, which means it is counted from the end of the month. "last Tuesday in April 2007" could be "2007/-1/tue/4"*'''DAYCODE ''' => "mon", "tue", "wed", "thu", "fri", "sat", or "sun". Do not translate these words; use all lowercase.*'''MONCODE ''' =>
** 'jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', or 'dec'. (not be translated; use all lowercase)

Navigation menu