NAME

App::HTMLCalendarMonth::Indonesia - Generate Indonesian monthly HTML calendar

VERSION

version 0.04

SYNOPSIS

# See gen-id-mon-calendar script for command-line usage

DESCRIPTION

FUNCTIONS

None are exported, but they are exportable.

FUNCTIONS

gen_id_mon_calendar(%args) -> [status, msg, result, meta]

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.

Arguments ('*' denotes required arguments):

  • 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.

  • year => int

    Defaults to current year if not specified

Return value:

Returns an enveloped result (an array). First element (status) is an integer containing HTTP status code (200 means OK, 4xx caller error, 5xx function error). Second element (msg) is a string containing error message, or 'OK' if status is 200. Third element (result) is optional, the actual result. Fourth element (meta) is called result metadata and is optional, a hash that contains extra information.

AUTHOR

Steven Haryanto <stevenharyanto@gmail.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2012 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.