A Perl extension that enables the creation and manipulation of HTML calendar months.
You can use HTML::AsSubs to create your calendar, customize the appearance and then print it in HTML using the as_HTML method. Alternatively, you can use regular HTML::Element creation to add a font or color and other elements, such as date ranges, to the calendar. The software also provides full support for locales via DateTime::Locale, making it easy to create calendars in different languages.
HTML::CalendarMonth is a subclass of HTML::ElementTable, which means the software behaves as if it was an HTML::ElementSuper, allowing easy manipulation of the appearance of the HTML table containing the calendar. The software interacts with the calendar through 'items', which are symbols that represent the content of a calendar cell. For example, the element representing the 14th day of the month would be returned by $c->item(14). Similarly, the element representing the header for Monday would be returned by $c->item('Mo').
Using the software, you can easily manipulate multiple cells of the calendar as if they were a single element using the item() method. You can set a background color of a cell, and the software will apply it to all cells containing the item symbols passed to the item() method.
The calendar structure is still a table structure, and the same table structure provided by the HTML::ElementTable class is available. Additionally, you can access cells using row and column grid coordinates using the cell() method. The software also includes support for week-of-the-year numbering, arbitrary 1st day of the week definitions, and aliasing so that you can express any element in any language HTML can handle.
HTML::CalendarMonth handles dates that are beyond the range of the built-in time functions of Perl, either by the 'cal' command, Date::Calc or Date::Manip. If you want to use week-of-year numbering, then either one of the date modules is required.
Overall, HTML::CalendarMonth is a powerful software that provides a comprehensive solution for generating and manipulating HTML calendars. The software is easy to use, and its functionality is impressive, making it a great choice for anyone who needs to generate HTML calendars on a regular basis.
Version 1.19: N/A