Date-Holidays-TW
    
    
  
  
  
view release on metacpan or search on metacpan
v0.8.0 2025-07-02T21:20:48+0900
  - Add calendar data of 2026
v0.7.0 2025-06-16T09:31:18+0900
  - Update calendar data of 2025 according to the official updates.
v0.6.0 2024-08-11T14:07:24+0900
  - Add calendar data of 2025
v0.5.0 2023-05-28T23:38:41+0900
  - Add calendar data of 2024
v0.4.0 2022-06-15T20:34:11+0900
  - Add calendar data of 2023
v0.3.0 2021-06-03T23:34:33+0900
  - Update calendar data of 2021
  - Add calendar data of 2022
v0.2.0 2020-05-31T23:40:24+0800
  - Add calendar data from 2013 to 2021.
v0.1.1 2020-05-25T10:28:44+0800
  - Fix the syntax error in v0.1.0
v0.1.0 2020-05-17T22:30:35+0800
  - First release!
  - While this can be used by itself, integration with Date::Holidays should just work
    Or via Date::Holidays
        my $dh = Date::Holidays->new( countrycode => 'TW' );
        if ($dh->is_holiday( 2020, 6, 25 )) {
            ...
        }
DESCRIPTION
    This module provides functions to look into Taiwan holiday calendars
    for known holidays. It could be used by itself, or under via
    Date::Holidays module.
    Caveat: Due to the rule of weekend-compensation and the fact that the
    majority of holidays are defined by Chinese calendar (Lunar), it
    requires some non-trivial amount of computation to correctly determine
    whether the given date is an holiday or not -- which is not implemented
    at this version.
    The current implementation includes all known holidays from year 2013
    and 2024 in a lookup table and should therefore correctly determine
    holidays in those years. It should also determine most of the future
    holidays correctly with some basic compuation, except for the ones
    generated by the weekend-compensation rules, which is somewhat
    ambiguous.
    Conventionally the holiday calendar for the next year is announcend at
    the end of June and we could start to mix the new information into the
    lookup table in this module.
    Generally speaking, queries for far future should be avoided.
EXPORTABLE FUNCTIONS
 is_tw_holiday
    Usage:
lib/Date/Holidays/TW.pm view on Meta::CPAN
Or via C<Date::Holidays>
    my $dh = Date::Holidays->new( countrycode => 'TW' );
    if ($dh->is_holiday( 2020, 6, 25 )) {
        ...
    }
=head1 DESCRIPTION
This module provides functions to look into Taiwan holiday calendars
for known holidays. It could be used by itself, or under via
L<Date::Holidays> module.
Caveat: Due to the rule of weekend-compensation and the fact that the
majority of holidays are defined by Chinese calendar (Lunar), it
requires some non-trivial amount of computation to correctly determine
whether the given date is an holiday or not -- which is not
implemented at this version.
The current implementation includes all known holidays from year 2013
and 2024 in a lookup table and should therefore correctly determine
holidays in those years. It should also determine most of the future
holidays correctly with some basic compuation, except for the ones
generated by the weekend-compensation rules, which is somewhat
ambiguous.
Conventionally the holiday calendar for the next year is announcend at
the end of June and we could start to mix the new information into the
lookup table in this module.
Generally speaking, queries for far future should be avoided.
=head1 EXPORTABLE FUNCTIONS
=head2 is_tw_holiday
Usage:
( run in 0.349 second using v1.01-cache-2.11-cpan-5dc5da66d9d )