HTML-CalendarMonthSimple
    
    
  
  
  
view release on metacpan or search on metacpan
  - Estimated date as this version was not released to CPAN
  - Added the headercontentcolor(), weekendheadercontentcolor(), and weekdayheadercontentcolor() methods, and made content headers use bgcolors, etc properly.
1.09 2001-06-18
  - Fixed the "2Monday", et al support; a bug was found by Dale Wellman <dwellman@bpnetworks.com> where the 7th, 14th, 21st, and 28th days weren't properly computing which Nth weekday they were so "1Monday" wouldn't work if the first Monday was the 7...
1.08 2001-06-02
  - Re-did the bugfixes described in 1.05, handling padded and non-integer dates.
1.07 2001-05-26
  - Fixed a typo that caused an entirely empty calendar to be displayed very small.
1.06 2001-05-26
  - Changed the "which weekday" interface a bit; truncations such as "2Tue" no longer work, and must be spelled out entirely ("2Tuesday"). Added "plural weekdays" support (e.g. "wednesdays" for "every wednesday").
1.05 2001-05-22
  - addcontent(), et al can now take strings such as '06' or decimals such as '3.14' and will handle them correctly.
1.04 2001-05-21
  - Added the "which weekday" capability to addcontent(), setcontent(), and getcontent()
    $cal->setdatehref(14, 'http://localhost/');
    $cal->addcontent(14,"<p>Don't forget to buy flowers.");
    $cal->addcontent(13,"Guess what's tomorrow?");
    $cal->bgcolor('pink');
    print $cal->as_HTML;
# DESCRIPTION
Note: This package is no longer being maintained by Gregor Mosheh <stigmata@blackangel.net>.  It is recommended that new development be built against [HTML::CalendarMonth](https://metacpan.org/pod/HTML%3A%3ACalendarMonth).
HTML::CalendarMonthSimple is a Perl module for generating, manipulating, and printing a HTML calendar grid for a specified month. It is intended as a faster and easier-to-use alternative to HTML::CalendarMonth.
This module requires the Date::Calc module, which is available from CPAN if you don't already have it.
# INTERFACE METHODS
## new(ARGUMENTS)
Naturally, new() returns a newly constructed calendar object.
The optional constructor arguments 'year' and 'month' can specify which month's calendar will be used. If either is omitted, the current value (e.g. "today") is used. An important note is that the month and the year are NOT the standard C or Perl -- ...
The arguments 'today\_year', 'today\_month', and 'today\_date' may also be specified, to specify what "today" is. If not specified, the system clock will be used. This is particularly useful when the todaycolor() et al methods are used, and/or if you...
    # Examples:
    # Create a calendar for this month.
    $cal = new HTML::CalendarMonthSimple();
    # A calendar for a specific month/year
    $cal = new HTML::CalendarMonthSimple('month'=>2,'year'=>2000);
    # Pretend that today is June 10, 2000 and display the "current" calendar
    $cal = new HTML::CalendarMonthSimple('today_year'=>2000,'today_month'=>6,'today_date'=>10);
## year
## month
## today\_year
## today\_month
## today\_date
## monthname
These methods simply return the year/month/date of the calendar, as specified in the constructor.
monthname() returns the text name of the month, e.g. "December".
## setcontent(DATE,STRING)
## addcontent(DATE,STRING)
## highlight (@DATE)
Highlights the particular dates given.
    $cal->highlight(1,10,22);
## getcontent(DATE)
These methods are used to control the content of date cells within the calendar grid. The DATE argument may be a numeric date or it may be a string describing a certain occurrence of a weekday, e.g. "3MONDAY" to represent "the third Monday of the mon...
Since plural weekdays (e.g. 'wednesdays') is not a single date, getcontent() will return the content only for the first occurrence of that day within a month.
    # Examples:
    # The cell for the 15th of the month will now say something.
    $cal->setcontent(15,"An Important Event!");
    # Later down the program, we want the content to be boldfaced.
    $cal->setcontent(15,"<b>" . $cal->getcontent(15) . "</b>");
    # addcontent() does not clobber existing content.
    $cal->setcontent('wednesdays','every wednesday');
    print $cal->getcontent(9); # returns 'every wednesday' because that was the last assignment!
## as\_HTML
This method returns a string containing the HTML table for the month.
    # Example:
    print $cal->as_HTML();
It's okay to continue modifying the calendar after calling as\_HTML(). My guess is that you'd want to call as\_HTML() again to print the further-modified calendar, but that's your business...
## weekstartsonmonday(\[1|0\])
By default, calendars are displayed with Sunday as the first day of the week (American style). Most of the world prefers for calendars to start the week on Monday. This method selects which type is used: 1 specifies that the week starts on Monday, 0 ...
    # Example:
    $cal->weekstartsonmonday(1); # switch over to weeks starting on Monday
    $cal->weekstartsonmonday(0); # switch back to the default, where weeks start on Sunday
    # Example:
    print "The week starts on " . ($cal->weekstartsonmonday() ? 'Sunday' : 'Monday') . "\n";
## Days\_in\_Month
This function returns the number of days on the current calendar.
    foreach my $day (1 .. $cal->Days_in_Month) {
      $cal->setdatehref($day, &make_url($cal->year, $cal->month, $day));
    }
## setdatehref(DATE,URL\_STRING)
## getdatehref(DATE)
These allow the date-number in a calendar cell to become a hyperlink to the specified URL. The DATE may be either a numeric date or any of the weekday formats described in setcontent(), et al. If plural weekdays (e.g. 'wednesdays') are used with getd...
    # Example:
    # The date number in the cell for the 15th of the month will be a link
    # then we change our mind and delete the link by assigning a null string
    $cal->setdatehref(15,"http://sourceforge.net/");
    $cal->setdatehref(15,'');
    # Example:
    # the second Wednesday of the month goes to some website
    $cal->setdatehref('2wednesday','http://www.second-wednesday.com/');
    # note that this will effectively undo the '2wednesday' assignment we just did!
    # if we wanted the second Wednesday to go to that special URL, we should've done that one after this!
    $cal->setdatehref('wednesdays','http://every-wednesday.net/');
## contentfontsize(\[STRING\])
contentfontsize() sets the font size for the contents of the cell, overriding the browser's default. Can be expressed as an absolute (1 .. 6) or relative (-3 .. +3) size.
## border(\[INTEGER\])
This specifies the value of the border attribute to the <TABLE> declaration for the calendar. As such, this controls the thickness of the border around the calendar table. The default value is 5.
If a value is not specified, the current value is returned. If a value is specified, the border value is changed and the new value is returned.
## cellpadding
## cellspacing
## width(\[INTEGER\]\[%\])
This sets the value of the width attribute to the <TABLE> declaration for the calendar. As such, this controls the horizontal width of the calendar.
The width value can be either an integer (e.g. 600) or a percentage string (e.g. "80%"). Most web browsers take an integer to be the table's width in pixels and a percentage to be the table width relative to the screen's width. The default width is "...
If a value is not specified, the current value is returned. If a value is specified, the border value is changed and the new value is returned.
    # Examples:
    $cal->width(600);    # absolute pixel width
    $cal->width("100%"); # percentage of screen size
## showdatenumbers(\[1 or 0\])
If showdatenumbers() is set to 1, then the as\_HTML() method will put date labels in each cell (e.g. a 1 on the 1st, a 2 on the 2nd, etc.) If set to 0, then the date labels will not be printed. The default is 1.
If no value is specified, the current value is returned.
The date numbers are shown in boldface, normal size font. If you want to change this, consider setting showdatenumbers() to 0 and using setcontent()/addcontent() instead.
## showweekdayheaders(\[1 or 0\])
## weekdayheadersbig(\[1 or 0\])
If showweekdayheaders() is set to 1 (the default) then calendars rendered via as\_HTML() will display the names of the days of the week. If set to 0, the days' names will not be displayed.
If weekdayheadersbig() is set to 1 (the default) then the weekday headers will be in <th> cells. The effect in most web browsers is that they will be boldfaced and centered. If set to 0, the weekday headers will be in <td> cells and in normal t...
For both functions, if no value is specified, the current value is returned.
## cellalignment(\[STRING\])
## vcellalignment(\[STRING\])
cellalignment() sets the value of the align attribute to the <TD> tag for each day's cell. This controls how text will be horizontally centered/aligned within the cells. vcellalignment() does the same for vertical alignment. By default, content is al...
Any value can be used, if you think the web browser will find it interesting. Some useful alignments are: left, right, center, top, and bottom.
## header(\[STRING\])
By default, the current month and year are displayed at the top of the calendar grid. This is called the "header".
The header() method allows you to set the header to whatever you like. If no new header is specified, the current header is returned.
If the header is set to an empty string, then no header will be printed at all. (No, you won't be stuck with a big empty cell!)
    # Example:
    # Set the month/year header to something snazzy.
    my($y,$m) = ( $cal->year() , $cal->monthname() );
    $cal->header("<center><font size=+2 color=red>$m $y</font></center>\n\n");
## weekdayheadercolor(\[STRING\])
## weekdayheadercontentcolor(\[STRING\])
## weekendheadercolor(\[STRING\])
## weekendheadercontentcolor(\[STRING\])
These define the colors of the cells. If a string (which should be either a HTML color-code like '#000000' or a color-word like 'yellow') is supplied as an argument, then the color is set to that specified. Otherwise, the current value is returned. T...
The bgcolor defines the color of all cells. The weekdaycolor overrides the bgcolor for weekdays (Monday through Friday), the weekendcolor overrides the bgcolor for weekend days (Saturday and Sunday), and the todaycolor overrides the bgcolor for today...
The weekdayheadercolor overrides the bgcolor for the weekday headers that appear at the top of the calendar if showweekdayheaders() is true, and weekendheadercolor does the same thing for the weekend headers. The headercolor overrides the bgcolor for...
The colors of the cell borders may be set: bordercolor determines the color of the calendar grid's outside border, and is the default color of the inner border for individual cells. The inner bordercolor may be overridden for the various types of cel...
Finally, the color of the cells' contents may be set with contentcolor, weekdaycontentcolor, weekendcontentcolor, and todaycontentcolor. The contentcolor is the default color of cell content, and the other methods override this for the appropriate da...
    # Example:
    $cal->bgcolor('white');                  # Set the default cell bgcolor
    $cal->bordercolor('green');              # Set the default border color
    $cal->contentcolor('black');             # Set the default content color
    $cal->headercolor('yellow');             # Set the bgcolor of the Month+Year header
    $cal->headercontentcolor('yellow');      # Set the content color of the Month+Year header
    $cal->weekdayheadercolor('orange');      # Set the bgcolor of weekdays' headers
    $cal->weekendheadercontentcolor('blue'); # Set the color of weekday headers' contents
    $cal->weekendheadercolor('pink');        # Set the bgcolor of weekends' headers
    $cal->weekdayheadercontentcolor('blue'); # Set the color of weekend headers' contents
    $cal->weekendcolor('palegreen');         # Override weekends' cell bgcolor
    $cal->weekendcontentcolor('blue');       # Override weekends' content color
    $cal->todaycolor('red');                 # Override today's cell bgcolor
    $cal->todaycontentcolor('yellow');       # Override today's content color
    print $cal->as_HTML;                     # Print a really ugly calendar!
## datecolor(DATE,\[STRING\])
## datecontentcolor(DATE,\[STRING\])
## datebordercolor(DATE,\[STRING\])
These methods set the cell color and the content color for the specified date, and will return the current value if STRING is not specified. These color settings will override any of the settings mentioned above, even todaycolor() and todaycontentcol...
The date may be a numeric date or a weekday string as described in setcontent() et al. Note that if a plural weekday is used (e.g. 'sundays') then, since it's not a single date, the value for the first occurrence of that weekday will be returned (e.g...
    # Example:
    # Every Tuesday is a Soylent Green day...
    # Note that if the 3rd was a Tuesday, this later assignment would override the previous one.
    # see the docs for setcontent() et all for more information.
    $cal->datecolor('tuesdays','green');
    $cal->datecontentcolor('tuesdays','yellow');
## nowrap(\[1 or 0\])
If set to 1, then calendar cells will have the NOWRAP attribute set, preventing their content from wrapping. If set to 0 (the default) then NOWRAP is not used and very long content may cause cells to become stretched out.
## sharpborders(\[1 or 0\])
If set to 1, this gives very crisp edges between the table cells. If set to 0 (the default) standard HTML cells are used. If neither value is specified, the current value is returned.
FYI: To accomplish the crisp border, the entire calendar table is wrapped inside a table cell.
## cellheight(\[NUMBER\])
This specifies the height in pixels of each cell in the calendar. By default, no height is defined and the web browser usually chooses a reasonable default.
If no value is given, the current value is returned.
To unspecify a height, try specifying a height of 0 or undef.
## tableclass(\[STRING\])
## cellclass(\[STRING\])
## weekdaycellclass(\[STRING\])
## weekendcellclass(\[STRING\])
## todaycellclass(\[STRING\])
## datecellclass(DATE,\[STRING\])
## headerclass(\[STRING\])
These specify which CSS class will be attributed to the calendar's table and the calendar's cells. By default, no classes are specified or used.
tableclass() sets the CSS class for the calendar table.
cellclass() is used for all calendar cells. weekdaycellclass(), weekendcellclass(), and todaycellclass() override the cellclass() for the corresponding types of cells. headerclass() is used for the calendar's header.
datecellclass() sets the CSS class for the cell for the specified date. This setting will override any of the other cell class settings, even todaycellclass()  This date must be numeric; it cannot be a string such as "2wednesday"
If no value is given, the current value is returned.
To unspecify a class, try specifying an empty string, e.g. cellclass('')
## sunday(\[STRING\])
## saturday(\[STRING\])
lib/HTML/CalendarMonthSimple.pm view on Meta::CPAN
# HTML::CalendarMonthSimple.pm
# Generate HTML calendars. An alternative to HTML::CalendarMonth
# Herein, the symbol $self is used to refer to the object that's being passed around.
package HTML::CalendarMonthSimple;
our $VERSION = "1.27";
use strict;
use warnings;
use Date::Calc;
# Within the constructor is the only place where values are access directly.
lib/HTML/CalendarMonthSimple.pm view on Meta::CPAN
   $self->{'showweekdayheaders'} = 1;
   $self->{'cellalignment'}      = 'left';
   $self->{'vcellalignment'}     = 'top';
   $self->{'weekdayheadersbig'}  = 1;
   $self->{'nowrap'}             = 0;
   $self->{'weekdays'} = [qw/Monday Tuesday Wednesday Thursday Friday/];
   $self->{'sunday'}   = "Sunday";
   $self->{'saturday'} = "Saturday";
   # Set the default calendar header
   $self->{'header'} = sprintf("<center><font size=\"+2\">%s %d</font></center>",
                               Date::Calc::Month_to_Text($self->{'month'}),$self->{'year'});
   # Initialize the (empty) cell content so the keys are representative of the month
   bless $self,$class;
   foreach my $datenumber ( 1 .. $self->Days_in_Month ) {
      $self->{'content'}->{$datenumber}          = '';
      $self->{'datecellclass'}->{$datenumber}    = '';
      $self->{'datecolor'}->{$datenumber}        = '';
lib/HTML/CalendarMonthSimple.pm view on Meta::CPAN
   $cal->addcontent(14,"<p>Don't forget to buy flowers.");
   $cal->addcontent(13,"Guess what's tomorrow?");
   $cal->bgcolor('pink');
   print $cal->as_HTML;
=head1 DESCRIPTION
Note: This package is no longer being maintained by Gregor Mosheh <stigmata@blackangel.net>.  It is recommended that new development be built against L<HTML::CalendarMonth>.
HTML::CalendarMonthSimple is a Perl module for generating, manipulating, and printing a HTML calendar grid for a specified month. It is intended as a faster and easier-to-use alternative to HTML::CalendarMonth.
This module requires the Date::Calc module, which is available from CPAN if you don't already have it.
=head1 INTERFACE METHODS
=head2 new(ARGUMENTS)
Naturally, new() returns a newly constructed calendar object.
The optional constructor arguments 'year' and 'month' can specify which month's calendar will be used. If either is omitted, the current value (e.g. "today") is used. An important note is that the month and the year are NOT the standard C or Perl -- ...
The arguments 'today_year', 'today_month', and 'today_date' may also be specified, to specify what "today" is. If not specified, the system clock will be used. This is particularly useful when the todaycolor() et al methods are used, and/or if you're...
   # Examples:
   # Create a calendar for this month.
   $cal = new HTML::CalendarMonthSimple();
   # A calendar for a specific month/year
   $cal = new HTML::CalendarMonthSimple('month'=>2,'year'=>2000);
   # Pretend that today is June 10, 2000 and display the "current" calendar
   $cal = new HTML::CalendarMonthSimple('today_year'=>2000,'today_month'=>6,'today_date'=>10);
=head2 year
=head2 month
=head2 today_year
=head2 today_month
=head2 today_date
=head2 monthname
These methods simply return the year/month/date of the calendar, as specified in the constructor.
monthname() returns the text name of the month, e.g. "December".
=head2 setcontent(DATE,STRING)
=head2 addcontent(DATE,STRING)
=head2 highlight (@DATE)
Highlights the particular dates given.
  $cal->highlight(1,10,22);
=head2 getcontent(DATE)
These methods are used to control the content of date cells within the calendar grid. The DATE argument may be a numeric date or it may be a string describing a certain occurrence of a weekday, e.g. "3MONDAY" to represent "the third Monday of the mon...
Since plural weekdays (e.g. 'wednesdays') is not a single date, getcontent() will return the content only for the first occurrence of that day within a month.
   # Examples:
   # The cell for the 15th of the month will now say something.
   $cal->setcontent(15,"An Important Event!");
   # Later down the program, we want the content to be boldfaced.
   $cal->setcontent(15,"<b>" . $cal->getcontent(15) . "</b>");
   # addcontent() does not clobber existing content.
lib/HTML/CalendarMonthSimple.pm view on Meta::CPAN
=head2 as_HTML
This method returns a string containing the HTML table for the month.
   # Example:
   print $cal->as_HTML();
It's okay to continue modifying the calendar after calling as_HTML(). My guess is that you'd want to call as_HTML() again to print the further-modified calendar, but that's your business...
=head2 weekstartsonmonday([1|0])
By default, calendars are displayed with Sunday as the first day of the week (American style). Most of the world prefers for calendars to start the week on Monday. This method selects which type is used: 1 specifies that the week starts on Monday, 0 ...
   # Example:
   $cal->weekstartsonmonday(1); # switch over to weeks starting on Monday
   $cal->weekstartsonmonday(0); # switch back to the default, where weeks start on Sunday
   # Example:
   print "The week starts on " . ($cal->weekstartsonmonday() ? 'Sunday' : 'Monday') . "\n";
=head2 Days_in_Month
This function returns the number of days on the current calendar.
  foreach my $day (1 .. $cal->Days_in_Month) {
    $cal->setdatehref($day, &make_url($cal->year, $cal->month, $day));
  }
=head2 setdatehref(DATE,URL_STRING)
=head2 getdatehref(DATE)
These allow the date-number in a calendar cell to become a hyperlink to the specified URL. The DATE may be either a numeric date or any of the weekday formats described in setcontent(), et al. If plural weekdays (e.g. 'wednesdays') are used with getd...
   # Example:
   # The date number in the cell for the 15th of the month will be a link
   # then we change our mind and delete the link by assigning a null string
   $cal->setdatehref(15,"http://sourceforge.net/");
   $cal->setdatehref(15,'');
   # Example:
   # the second Wednesday of the month goes to some website
   $cal->setdatehref('2wednesday','http://www.second-wednesday.com/');
lib/HTML/CalendarMonthSimple.pm view on Meta::CPAN
   # note that this will effectively undo the '2wednesday' assignment we just did!
   # if we wanted the second Wednesday to go to that special URL, we should've done that one after this!
   $cal->setdatehref('wednesdays','http://every-wednesday.net/');
=head2 contentfontsize([STRING])
contentfontsize() sets the font size for the contents of the cell, overriding the browser's default. Can be expressed as an absolute (1 .. 6) or relative (-3 .. +3) size.
=head2 border([INTEGER])
This specifies the value of the border attribute to the <TABLE> declaration for the calendar. As such, this controls the thickness of the border around the calendar table. The default value is 5.
If a value is not specified, the current value is returned. If a value is specified, the border value is changed and the new value is returned.
=head2 cellpadding
=head2 cellspacing
=head2 width([INTEGER][%])
This sets the value of the width attribute to the <TABLE> declaration for the calendar. As such, this controls the horizontal width of the calendar.
The width value can be either an integer (e.g. 600) or a percentage string (e.g. "80%"). Most web browsers take an integer to be the table's width in pixels and a percentage to be the table width relative to the screen's width. The default width is "...
If a value is not specified, the current value is returned. If a value is specified, the border value is changed and the new value is returned.
   # Examples:
   $cal->width(600);    # absolute pixel width
   $cal->width("100%"); # percentage of screen size
=head2 showdatenumbers([1 or 0])
lib/HTML/CalendarMonthSimple.pm view on Meta::CPAN
If showdatenumbers() is set to 1, then the as_HTML() method will put date labels in each cell (e.g. a 1 on the 1st, a 2 on the 2nd, etc.) If set to 0, then the date labels will not be printed. The default is 1.
If no value is specified, the current value is returned.
The date numbers are shown in boldface, normal size font. If you want to change this, consider setting showdatenumbers() to 0 and using setcontent()/addcontent() instead.
=head2 showweekdayheaders([1 or 0])
=head2 weekdayheadersbig([1 or 0])
If showweekdayheaders() is set to 1 (the default) then calendars rendered via as_HTML() will display the names of the days of the week. If set to 0, the days' names will not be displayed.
If weekdayheadersbig() is set to 1 (the default) then the weekday headers will be in <th> cells. The effect in most web browsers is that they will be boldfaced and centered. If set to 0, the weekday headers will be in <td> cells and in normal text.
For both functions, if no value is specified, the current value is returned.
=head2 cellalignment([STRING])
=head2 vcellalignment([STRING])
cellalignment() sets the value of the align attribute to the <TD> tag for each day's cell. This controls how text will be horizontally centered/aligned within the cells. vcellalignment() does the same for vertical alignment. By default, content is al...
Any value can be used, if you think the web browser will find it interesting. Some useful alignments are: left, right, center, top, and bottom.
=head2 header([STRING])
By default, the current month and year are displayed at the top of the calendar grid. This is called the "header".
The header() method allows you to set the header to whatever you like. If no new header is specified, the current header is returned.
If the header is set to an empty string, then no header will be printed at all. (No, you won't be stuck with a big empty cell!)
   # Example:
   # Set the month/year header to something snazzy.
   my($y,$m) = ( $cal->year() , $cal->monthname() );
   $cal->header("<center><font size=+2 color=red>$m $y</font></center>\n\n");
lib/HTML/CalendarMonthSimple.pm view on Meta::CPAN
=head2 weekdayheadercolor([STRING])
=head2 weekdayheadercontentcolor([STRING])
=head2 weekendheadercolor([STRING])
=head2 weekendheadercontentcolor([STRING])
These define the colors of the cells. If a string (which should be either a HTML color-code like '#000000' or a color-word like 'yellow') is supplied as an argument, then the color is set to that specified. Otherwise, the current value is returned. T...
The bgcolor defines the color of all cells. The weekdaycolor overrides the bgcolor for weekdays (Monday through Friday), the weekendcolor overrides the bgcolor for weekend days (Saturday and Sunday), and the todaycolor overrides the bgcolor for today...
The weekdayheadercolor overrides the bgcolor for the weekday headers that appear at the top of the calendar if showweekdayheaders() is true, and weekendheadercolor does the same thing for the weekend headers. The headercolor overrides the bgcolor for...
The colors of the cell borders may be set: bordercolor determines the color of the calendar grid's outside border, and is the default color of the inner border for individual cells. The inner bordercolor may be overridden for the various types of cel...
Finally, the color of the cells' contents may be set with contentcolor, weekdaycontentcolor, weekendcontentcolor, and todaycontentcolor. The contentcolor is the default color of cell content, and the other methods override this for the appropriate da...
   # Example:
   $cal->bgcolor('white');                  # Set the default cell bgcolor
   $cal->bordercolor('green');              # Set the default border color
   $cal->contentcolor('black');             # Set the default content color
   $cal->headercolor('yellow');             # Set the bgcolor of the Month+Year header
   $cal->headercontentcolor('yellow');      # Set the content color of the Month+Year header
   $cal->weekdayheadercolor('orange');      # Set the bgcolor of weekdays' headers
   $cal->weekendheadercontentcolor('blue'); # Set the color of weekday headers' contents
   $cal->weekendheadercolor('pink');        # Set the bgcolor of weekends' headers
   $cal->weekdayheadercontentcolor('blue'); # Set the color of weekend headers' contents
   $cal->weekendcolor('palegreen');         # Override weekends' cell bgcolor
   $cal->weekendcontentcolor('blue');       # Override weekends' content color
   $cal->todaycolor('red');                 # Override today's cell bgcolor
   $cal->todaycontentcolor('yellow');       # Override today's content color
   print $cal->as_HTML;                     # Print a really ugly calendar!
=head2 datecolor(DATE,[STRING])
=head2 datecontentcolor(DATE,[STRING])
=head2 datebordercolor(DATE,[STRING])
These methods set the cell color and the content color for the specified date, and will return the current value if STRING is not specified. These color settings will override any of the settings mentioned above, even todaycolor() and todaycontentcol...
The date may be a numeric date or a weekday string as described in setcontent() et al. Note that if a plural weekday is used (e.g. 'sundays') then, since it's not a single date, the value for the first occurrence of that weekday will be returned (e.g...
lib/HTML/CalendarMonthSimple.pm view on Meta::CPAN
   # Example:
   # Every Tuesday is a Soylent Green day...
   # Note that if the 3rd was a Tuesday, this later assignment would override the previous one.
   # see the docs for setcontent() et all for more information.
   $cal->datecolor('tuesdays','green');
   $cal->datecontentcolor('tuesdays','yellow');
=head2 nowrap([1 or 0])
If set to 1, then calendar cells will have the NOWRAP attribute set, preventing their content from wrapping. If set to 0 (the default) then NOWRAP is not used and very long content may cause cells to become stretched out.
=head2 sharpborders([1 or 0])
If set to 1, this gives very crisp edges between the table cells. If set to 0 (the default) standard HTML cells are used. If neither value is specified, the current value is returned.
FYI: To accomplish the crisp border, the entire calendar table is wrapped inside a table cell.
=head2 cellheight([NUMBER])
This specifies the height in pixels of each cell in the calendar. By default, no height is defined and the web browser usually chooses a reasonable default.
If no value is given, the current value is returned.
To unspecify a height, try specifying a height of 0 or undef.
=head2 tableclass([STRING])
=head2 cellclass([STRING])
=head2 weekdaycellclass([STRING])
=head2 weekendcellclass([STRING])
=head2 todaycellclass([STRING])
=head2 datecellclass(DATE,[STRING])
=head2 headerclass([STRING])
These specify which CSS class will be attributed to the calendar's table and the calendar's cells. By default, no classes are specified or used.
tableclass() sets the CSS class for the calendar table.
cellclass() is used for all calendar cells. weekdaycellclass(), weekendcellclass(), and todaycellclass() override the cellclass() for the corresponding types of cells. headerclass() is used for the calendar's header.
datecellclass() sets the CSS class for the cell for the specified date. This setting will override any of the other cell class settings, even todaycellclass()  This date must be numeric; it cannot be a string such as "2wednesday"
If no value is given, the current value is returned.
To unspecify a class, try specifying an empty string, e.g. cellclass('')
=head2 sunday([STRING])
=head2 saturday([STRING])
( run in 0.620 second using v1.01-cache-2.11-cpan-5dc5da66d9d )