NAME

ICU::Calendar - Perl extension for International Components for Unicode

SYNOPSIS

use ICU::Calendar qw( :EDateFields :EDaysOfWeek :EMonths :EAmpm );

DESCRIPTION

API # with C style prototypes for clarity

my $calendar = createInstance( [ \\$status ] );

my $calendar = createInstance( $zoneToAdopt, [ \\$status ] ); # TimeZone *zoneToAdopt;

my $debugLevel = setDebugLevel( [ $new_debug_level ] );

my $udate = $calendar->getTime( [ \\$status ] ); # UDate udate;

$calendar->setTime($date, [ \\$status ] );

$calendar->roll($field, $up, \\$status); # Calendar__EDateFields field; UBool up;

$calendar->adoptTimeZone($zone); # TimeZone *zone;

$calendar->setTimeZone($zone); # TimeZone *zone;

my $timezone= $calendar->getTimeZone(); # TimeZone *timezone;

$calendar->setLenient($lenient); # UBool lenient;

my $value = $calendar->isLenient(); # UBool value;

$calendar->setFirstDayOfWeek($value); # Calendar__EDaysOfWeek value;

my $value = $calendar->getFirstDayOfWeek(); # Calendar__EDaysOfWeek value;

$calendar->setMinimalDaysInFirstWeek($value); # uint8_t value;

my $value = $calendar->getMinimalDaysInFirstWeek(); # uint8_t value;

my $value = $calendar->getActualMinimum($field, [ \\$status ] ); # Calendar__EDateFields field; int32_t value;

my $value = $calendar->getActualMaximum($field, $status); # Calendar__EDateFields field; int32_t value

my $value = $calendar->get($field, $status); # Calendar__EDateFields field; int32_t value;

my $value = $calendar->isSet($field); # Calendar__EDateFields field; UBool value

$calendar->set($field, $value); # Calendar__EDateFields field; int32_t value;

$calendar->set($year, $month, $date); # int32_t year, month, date;

$calendar->set($year, $month, $date, $hour, $minute);

$calendar->set($year, $month, $date, $hour, $minute, $second);

$calendar->clear();

$calendar->clear_field($field); # Calendar__EDateFields field;