NAME
App::HTMLCalendarMonth::Indonesia - Generate Indonesian monthly HTML calendar
VERSION
version 0.03
SYNOPSIS
# See gen-id-mon-calendar script for command-line usage
DESCRIPTION
FUNCTIONS
None are exported, but they are exportable.
gen_id_mon_calendar(%args) -> [STATUS_CODE, ERR_MSG, RESULT]
Generate Indonesian monthly HTML calendar.
This function uses HTML::CalendarMonth and Calendar::Indonesian::Holiday to generate monthly HTML calendar, with Indonesian holidays marked as CSS class (classes: sunday, holiday), and holiday names in TITLE attributes.
Returns a 3-element arrayref. STATUS_CODE is 200 on success, or an error code between 3xx-5xx (just like in HTTP). ERR_MSG is a string containing error message, RESULT is the actual result.
Arguments (*
denotes required arguments):
year => int
Defaults to current year if not specified
holidays => array
If specified, use this list of holidays.
If not specified, list of holidays is retrieved from Calendar::Indonesia::Holiday.
Should be a list of YYYY-MM-DD date strings
month => int
Defaults to current month if not specified
postprocess => code
If supplied, code will get HTML::Calendar object.
Can be used to customize the output further.
AUTHOR
Steven Haryanto <stevenharyanto@gmail.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Steven Haryanto.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.