Marco Marazzi > clickTk-4.013 > cal

Download:
clickTk-4.013.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 1.02   Source  

Class cal ^

        The class cal provides some calendar functions.

Syntax

        use cal;

        my $name = cal::dayName('Feb', 14);

        my $im = cal::indexOfMonth('Feb');

        my $days = cal::daysOfMonth('Feb');

        my $m1 = cal::indexOfMonthDay1('Feb');

Programming notes

Data members
        Data members are class data member and read-only.

                @month      list of the number of days per month,
                @monthName  list of the month names,
                @day        list of the day names,

                $jan1       weekday of the first da of the year, (1 .. 7).

                debug       activate debg mode (0,1)
Constructor & desctructor
        No specific processing.
Methods
        dayName          the name of the given couple (month,day number) 
        indexOfMonth     0..11 index of the given month name
        daysOfMonth      28..31, number of days of the given month
        indexOfMonthDay1 1-7, weekday of the 1st day of the given month 
Limited to one year (currently 2007)

Maintenance

        Author: MARCO
        date:   28.11.2006
        History 
                        28.11.2006 MO00001 mam First draft
                        11.02.2007 MO00002 mam 2007