GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  DATE::HOLIDAYS::DK (3)

.ds Aq ’

NAME

Date::Holidays::DK - Determine Danish public holidays

CONTENTS

SYNOPSIS



  use Date::Holidays::DK;
  my ($year, $month, $day) = (localtime)[ 5, 4, 3 ];
  $year  += 1900;
  $month += 1;
  print "Woohoo" if is_dk_holiday( $year, $month, $day );

  my $h = dk_holidays($year);
  printf "Dec. 25th is named %s\n", $h->{1225};



DESCRIPTION

Determines whether a given date is a Danish public holiday or not.

This module is based on the simple API of Date::Holidays::UK, but implements a generalised date mechanism, that will work for all years since 1700, when Denmark adopted the Gregorian calendar.

Functions

is_dk_holiday($year, $month, $date) Returns the name of the Holiday that falls on the given day, or undef if there is none.
dk_holidays($year) Returns a hashref of all defined holidays in the year. Keys in the hashref are in ’mmdd’ format, the values are the names of the holidays.

EXPORTS

Exports is_dk_holiday() and dk_holidays() by default.

BUGS

Please report issues via CPAN RT:



  http://rt.cpan.org/NoAuth/Bugs.html?Dist=Date-Holidays-DK



or by sending mail to



  bug-Date-Holidays-DK@rt.cpan.org



AUTHORS

Lars Thegler <lars@thegler.dk>. Originally inspired by Date::Holidays::UK by Richard Clamp.

dk_holidays() concept by Jonas B. Nielsen.

COPYRIGHT

Copyright (c) 2004-2005 Lars Thegler. All rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 DK (3) 2005-10-28

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.