Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.545.493 Times

Date::Holidays::PT 0.02

Company: Jos?A© Alves de Castro
Date Added: November 23, 2013  |  Visits: 222

Date::Holidays::PT

Report Broken Link
Printer Friendly Version


Product Homepage
Download (16 downloads)



Date::Holidays::PT - Determine Portuguese public holidays<br /><br />SYNOPSIS<br /><br /> use Date::Holidays::PT;<br /> my ($year, $month, $day) = (localtime)[ 5, 4, 3 ];<br /> $year += 1900;<br /> $month += 1;<br /> print "Woohoo" if is_pt_holiday( $year, $month, $day );<br /><br /> my $h = pt_holidays($year);<br /> printf "Jan. 1st is named '%s'<br />", $h->{'0101'};<br /><br />FUNCTIONS<br /><br />new<br /><br />Creates a new Date::Holidays::PT object.<br /><br /> my $mh = Date::Holidays::PT->new();<br /><br />is_holiday<br /><br />Should at least take three arguments:<br /><br />year (four digits) month (between 1-12) day (between 1-31)<br /><br />The return value from is_holiday is either a 1 or a 0 (1 if the specified date is a holiday, 0 otherwise).<br /><br /> if ( $mh->is_holiday( $year, $month, $day ) ) {<br /> # it's a holiday<br /> }<br /><br />is_pt_holiday<br /><br />Similar to is_holiday, but instead of returning 1 if the date is a holiday returns a string comprising the name of the holidays. In the event of two or more holidays on the same day (hey, it happens), the string will comprise the name of all those holidays separated by a semicolon.<br /><br /> my $todays_holiday = $mh->is_pt_holiday( $year, $month, $day );<br /> if ( $todays_holiday ) {<br /> print "Today is $todays_holiday.<br />Don't bother getting up!<br />";<br /> }<br /><br />holidays<br /><br />Should take at least one argument:<br /><br />year (four digits)<br /><br />Returns a reference to a hash, where the keys are date represented as four digits, the two first representing month (01-12) and the last two representing day (01-31).<br /><br />The value for the key in question is the local name for the holiday indicated by the day. In the event of two or more holidays on the same day (yes, it happens!), the values will comprise the name of all those holidays separated by a semicolon.<br /><br /> my $years_holidays = holidays( $year );<br /> for (keys %$years_holidays) {<br /> my ($day, $month) = /(..)(..)/;<br /> print "$day/$month - $years_holidays->$_<br />";<br /> }<br />

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Comprise Dateholidayspt Digits Event Holiday Holidays Month Print Representing Semicolon Separated String Todays Holiday Years Holidays
Users rating: 0/10

License: Freeware Size: 10.24 KB
USER REVIEWS
More Reviews or Write Review


DATE::HOLIDAYS::PT RELATED
Productivity  -  Holidays Plus UK FREE - Holiday tracker with calendar sync 1.1
Never miss a holiday again! Holidays Plus UK lets you keep track of all UK holidays and features a detailed view of every holiday or notable day. Each date includes a description of the event, week number and days until next occurrence....
12.2 MB  
Productivity  -  Holiday App 1.3
Holiday App contains the details of more than 1600 holiday days from more than 140 countries. This is an ideal tool for event planners, businesses working with foreign overseas teams, tourists, students and more. Event planning is aided by...
13 MB  
Games  -  Delicious: Emily's Holiday Season for Mac OS 1.0
Deck the halls with love and joy in Delicious - Emily's Holiday Season, a wonderful time management sequel to warm up your holidays! It's winter in Snuggford and Emily is preparing for her family's holiday party at a cozy little lodge. While...
125 MB  
Productivity  -  6-Month Planner, Calendars & Groups 1.5.2
Freemium version, limited to event in current month and 2 groups of calendars. Integrated purchase offers complete access with no limitations. 6-Month Planning is a calendar manager fully synchronized with iOS and iCloud. Its been...
819.2 KB  
Games  -  Harold's Holiday Matching Game 1.3
Fun holiday matching game to keep you and your kids occupied. More holidays coming soon.. Requirements: iOS 5.1 or later. Compatible with iPhone, iPad, and iPod touch. This app is optimized for iPhone 5.
4.1 MB  
Finance  -  Holiday Helper 1.0.2
This free application is designed to help simplify your holidays by helping you keep track of your holiday gifts and your budget. This application supports tracking of multiple people as well as assigning multiple gifts to those people....
204.8 KB  
Social Networking  -  Holidays in India 2014 1.1.0.0
This application is used to store the List of holidays in India 2014. User can share the holiday details using NFC. Requirements: Windows Phone 8.1, Windows Phone 8
2 MB  
Entertainment  -  Christmas Genius Quiz HD 1.0.1
Christmas Genius Quiz is a terrific holiday game for kids! Highly recommended. Celebrate the spirit of the holidays with all of your favorite characters: ? Santa Frosty Rudolph ? Santa's Elves ? and more!...
16.1 MB  
Lifestyle  -  Agriturismi Lombardi 1.2.0.0
Are you on holiday in Lombardia and do you want eat in a farm holidays (agriturismo)? This app is perfect for you! Features: - list of agriturismo published from Regione Lombardia - search by name - search near your...
3 MB  
Application Add-Ins  -  Ferienwohnungsverwaltung FeWo24 2.3.3f
With our new, flexible and practical holiday home management software with intuitively understandable surface for holiday homes, apartments, guest houses and small hotels you manage easy and comfortable guests and dates, stays and apartments. It...
15.82 MB  
NEW DOWNLOADS IN LINUX SOFTWARE, PROGRAMMING
Linux Software  -  Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad....
488 B  
Linux Software  -  Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video...
17.7 MB  
Linux Software  -  Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql.
47.5 KB  
Linux Software  -  SLAX 6.0+
Slax is a modern, portable, small and fast Linux operating system with a modular approach and outstanding design. Despite its small size, Slax provides a wide collection of pre-installed software for daily use, including a well organized graphical...
190 KB  
Linux Software  -  GTK+ 2.5
GTK+, which stands for the GIMP Toolkit, is a library for creating graphical user interfaces for the X Window System. It is designed to be small, efficient, and flexible. GTK+ is written in C with a very object-oriented approach. Language bindings...
60 MB  
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB