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 30.142.648 Times

Date::Holidays::Abstract 0.05

Company: Jonas B. Nielsen
Date Added: July 22, 2013  |  Visits: 250

Date::Holidays::Abstract

Report Broken Link
Printer Friendly Version


Product Homepage
Download (16 downloads)

This module is an abstract class intended for Date::Holidays::*<br /><br />The goal is to have all the existing and future modules implement the same methods, so they will have a uniform usage and can be used in polymorphic context or can be easily adapted into the Date::Holidays class.<br /><br />If you want to use Date::Holidays::Abstract and want to comply with my suggestions to the methods that ought to be implemented, you should implement:<br /><br />is_holiday<br />holidays<br /><br />is_holiday<br /><br />Should at least take 3 arguments:<br /><br />year, four digits<br />month, between 1-12<br />day, between 1-31<br /><br />The return value from is holiday is either a 1 or 0 indicating true of false, indicating whether the specified date is a holiday in the given country's national calendar.<br /><br />Additional arguments are at the courtesy of the author of the using module/class.<br />holidays<br /><br />Should at least take 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. The resultset will of course vary depending on the given country's national holiday.<br /><br />Additional arguments are at the courtesy of the author of the using module/class.<br /><br />--<br /><br />Date::Holidays uses the requirements defined by this module and this module can therefor be used with success in conjunction with this.<br /><br />This is an alternative to a SUPER class. I have given a lot of thought to programming a SUPER class, but since creating a super class for a bunch of modules implementing handling of national holidays, an abstract class seemed a better choice.<br /><br />A proposed SUPER class for Date::Holidays::* is however implemented see: Date::Holidays::Super implement is_holiday and holidays and expect these to be overloaded.<br /><br />Overloading would be necessary since nothing intelligent can be said about holidays without specifying a nationality (a part from holidays being nice but too few), and the implemented methods would be empty bodies returning empty result sets.<br /><br />So I am more for an abstract class and as stated I consider this class an experiment and I have implemented Date::Holidays::Super as an alternative.<br /><br />Suggestions for changes and extensions are more than welcome.

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Abstract Class Courtesy Holiday Holidays Implement Implemented Indicating Methods Module Modules National Representing Super
Users rating: 0/10

License: Freeware Size: 10.24 KB
DATE::HOLIDAYS::ABSTRACT RELATED
Libraries  -  SOAP::Data::ComplexType 0.041
SOAP::Data::ComplexType is an abstract class for creating and handling complex SOAP::Data objects. SYNOPSIS package My::SOAP::Data::ComplexType::Foo; use strict; use warnings; use SOAP::Data::ComplexType; use vars qw(@ISA); @ISA =...
13.31 KB  
Libraries  -  Persistent::Base 0.52
Persistent::Base is an Abstract Persistent Base Class. SYNOPSIS ### we are a subclass of ... ### use Persistent::Base; @ISA = qw(Persistent::Base); ABSTRACT This is an abstract class used by the Persistent framework of classes to...
38.91 KB  
Database Tools  -  MM::CDatabase 1.0
MM::CDatabase is an abstract class that can be used to execute SQL queries with parameters. It allows loading queries defined in files.The query parameters are defined in arrays that associate parameter names with the respective values.To use...
10 KB  
Libraries  -  Apache::Wyrd 0.94
Apache::Wyrd is a Perl module for HTML embeddable perl objects under mod_perl. Apache::Wyrd is the core module in a collection of interoperating modules that allow the rapid object-oriented development of web sites in Apaches mod_perl...
174.08 KB  
Networking  -  FTP Client Class 1.0
FTP Client Class is a simple FTP client without ftp module. This class uses only standard functions. e.g. fsockopen(), fputs, fread().
 
Development Tools  -  PHP Installation System 0.2b 1.0
PHP Installation System is an abstract class which can be used to create a web-based installation script. It provides all the basic interface tools of gathering configuration information from the user while allowing the author to perform all PHP...
 
Libraries  -  Object::Realize::Later 0.16
Object::Realize::Later is a Perl module with delayed creation of objects. SYNOPSIS package MyLazyObject; use Object::Realize::Later becomes => MyRealObject, realize => load; The Object::Realize::Later class helps with implementing...
10.24 KB  
Libraries  -  WordNet::Similarity::PathFinder 1.04
WordNet::Similarity::PathFinder is a Perl module to implement path finding methods (by node counting) for WordNet::Similarity measures of semantic relatedness. SYNOPSIS use WordNet::QueryData; my $wn = WordNet::QueryData->new; use...
645.12 KB  
Programming  -  libgenerics for Linux 1.2.1
Libgenerics is a c++ library that provides object services to analyse class type at runtime sharing the definitions between dynamic modules. It provides serialization services abstraction too. It's an absolute generic library.
1.07 MB  
Libraries  -  Tie::Layers 0.06
SYNOPSIS ##### # Subroutines # use Tie::Layers qw(is_handle config); $yes = is_handle( $file_handle ); ($key, $old_value) = config(%options, $key); ($key, $old_value) = config(%options, $key => $new_value ); #### # Config default...
71.68 KB  
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