[Palm|Palm Programming]
HolidayDB | HolidayDBMaker | Submit
Table of Contents
- Overview
- How to input Holiday
- General Rules
- Input Format
- Fixed Day(like New Year's Day, Christmas Day, Halloween)
- Day of Month(Example: First Sunday of June; like Daylight Saving's Start/End, Martin Luther King's Day)
- Easter related(x days before Easter Sunday; Like Easter Sunday)
- Input Examples
Overview
HolidayDB.pdb Generator. Currently WP+, WeeklyPlan, and PalmWiki:MonthPlanner use HolidayDB.pdb.
- Versino 1.21 (2006-05-10)
- (Change) Change the shortcut for 'Cleanup Datebook' into 'L'
- Version 1.2(2005-11-02)
- Version 1.01(2005-10-29)
- (Change) Change lunar calculation module into shared library
- (Add) Icon Feature
- Version 1.0b3(2005-05-09)
- (Fix) Wrong lunar calculation(2006.1.30 in lunlar)
- Version 1.0b2(2004-11-23)
- (Fix) Wrong lunar calculation(2006.1.1 in lunar)
- Version 1.0b(2004-11-01)
- (Add) Progress Dialog during 'Datebook Notify' and 'Generate HolidayDB'
- (Add) Icon box in Datebook Notify screen - not work yet
- Version 0.9 (2004-05-10)
- (Add) Prefix '*' ; which is used for describing 'Datebook notify only entry'
- Version 0.8 (2004-05-03)
- Version 0.7 (2004-04-30)
- (Add) Datebook Notify and Clean up from Datebook
- Version 0.6 (2004-02-02)
- (Add) Help menu
- Change Creator ID : Now you can delete HolidayDBMaker without erasing HolidayDB.pdb
- Version 0.5 (2004-02-01) : Initial Release
How to input Holiday
General Rules
- All lines staring with ';' are comment, You can add comment with ';' in any places of lines
- Descrition string for Datebook notify is started with ':'
It is used for Datebook Notify
- Starting lines with '*' are ignored during 'Create HolidayDB'.
- Each entry is divided with '\n'. You can enter one holiday entry in one line.
- You can specify the duration such as the day after or before holiday with '[' and ']'
ex) 1/1[-1,0,1] ; A Day before New year, New Year, A Day after New Year.
- If year field is specified, it only occurs on that year. Or it is repeated on the years specified in Prefs.
Input Format
Fixed Day(like New Year's Day, Christmas Day, Halloween)
It follows the system date format. If Date Format is 'M/D/Y', you can input '10/2/2004'.
You can input lunar date with -) and #). -) means by lunar day, and #) means by lunar leap day.
- Examples
- 1/1 : New Year
- 10/31 : Halloween
- 12/25 : Christmas
- -)8/15[-1,0,1] : Chuseok in Korea
- -)1/1[-1,0,1] : Seol in Korea
Day of Month(Example: First Sunday of June; like Daylight Saving's Start/End, Martin Luther King's Day)
@c(month, week_of_month, day_of_week)
@c(month, week_of_month, day_of_week, year)
If week_of_month is -1, it means by the last week. day_of_week must be between 0 and 6(Sun=0, ..., Sat=6).
- Examples
- @c(2, 3, 1) : President's Day Observed(Third Monday in February)
- @c(9, 1, 1) : Labor Day Observed(First Monday in September)
- @c(10, 2, 1) : Columbus Day Observed(Second Monday in October)
Easter related(x days before Easter Sunday; Like Easter Sunday)
@easter
@easter(year)
- Examples
- @easter(2004) : Easter Sunday in 2004
- @easter[-4] : Four days before Easter Sunday
Input Examples
You can see a few examples in HolidayDB/Input.