Datebook(3)           User Contributed Perl Documentation          Datebook(3)

       Palm::Datebook - Handler for Palm DateBook databases.

           use Palm::Datebook;

       The Datebook PDB handler is a helper class for the Palm::PDB package.
       It parses DateBook databases.

       AppInfo block

       The AppInfo block begins with standard category support. See
       Palm::StdAppInfo for details.

       Sort block


       This is a scalar, the raw data of the sort block.


           $record = $pdb->{records}[N]


       The day, month and year of the event. The day and month start at 1
       (i.e., for January, "$record->{month}" is set to 1). The year is a
       four-digit number (for dates in 2001, "$record->{year}" is "2001").

       For repeating events, these fields specify the first date at which the
       event occurs.


       The start and end times of the event. For untimed events, all of these
       are 0xff.


       This is defined and true iff the "when info" for the record has
       changed. I don't know what this means.


       If the record has an alarm associated with it, the %{$record->{alarm}}
       hash exists. The "unit" subfield is an integer: 0 for minutes, 1 for
       hours, 2 for days. The "advance" subfield specifies how many units
       before the event the alarm should ring.  e.g., if "unit" is 1 and
       "advance" is 5, then the alarm will sound 5 hours before the event.

       If "advance" is -1, then there is no alarm associated with this event.
       New records created via "new_Record" have a 10 minute alarm set by
       default. "undef $record-"{alarm}> to remove this alarm before writing.
       An alarm icon will still show up in the Datebook if the "alarm" field
       exists, even with "advance" set to -1.


       This has exists iff this is a repeating event.


       An integer which specifies the type of repeat:

       0   no repeat.

       1   a daily event, one that occurs every day.

       2   a weekly event, one that occurs every week on the same day(s). An
           event may occur on several days every week, e.g., every Monday,
           Wednesday and Friday.

           For weekly events, the following fields are defined:


           This is an array of 7 elements; each element is true iff the event
           occurs on the corresponding day. Element 0 is Sunday, element 1 is
           Monday, and so forth.


           I'm not sure what this is, but the Datebook app appears to perform
           some hairy calculations involving this.

       3   a "monthly by day" event, e.g., one that occurs on the second
           Friday of every month.

           For "monthly by day" events, the following fields are defined:


           The number of the week on which the event occurs. 0 means the first
           week of the month, 1 means the second week of the month, and so
           forth.  A value of 5 means that the event occurs on the last week
           of the month.


           An integer, the day of the week on which the event occurs. 0 means
           Sunday, 1 means Monday, and so forth.

       4   a "monthly by date" event, e.g., one that occurs on the 12th of
           every month.

       5   a yearly event, e.g., one that occurs every year on December 25th.


           Specifies the frequency of the repeat. For instance, if the event
           is a daily one, and $record->{repeat}{frequency} is 3, then the
           event occurs every 3 days.


       I don't know what this is.


       The last day, month and year on which the event occurs.

           $day   = $record->{exceptions}[N][0]
           $month = $record->{exceptions}[N][1]
           $year  = $record->{exceptions}[N][2]

       If there are any exceptions to a repeating event, e.g. a weekly meeting
       that was cancelled one time, then the @{$record->{exceptions}} array is

       Each element in this array is a reference to an anonymous array with
       three elements: the day, month, and year of the exception.


       A text string, the description of the event.


       A text string, the note (if any) attached to the event.


         $pdb = new Palm::Datebook;

       Create a new PDB, initialized with the various Palm::Datebook fields
       and an empty record list.


         $record = $pdb->new_Record;

       Creates a new Datebook record, with blank values for all of the fields.

       "new_Record" does not add the new record to $pdb. For that, you want

       Andrew Arensburger <>



perl v5.10.0                      2005-07-03                       Datebook(3)