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

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

Serving Software Downloads in 956 Categories, Downloaded 50.133.448 Times

Date::Holidays::Abstract 0.05

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

Date::Holidays::Abstract

Report Broken Link
Printer Friendly Version


Product Homepage
Download (37 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
USER REVIEWS
More Reviews or Write Review


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  
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().
 
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  
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  -  EasyEDA PCB Designer for Linux 2.0.0
EasyEDA, a great web based EDA(Electronics Design Automation) tool, online PCB tool, online PCB software for electronics engineers, educators, students, makers and enthusiasts. Theres no need to install any software. Just open EasyEDA in any...
34.4 MB  
Linux Software  -  wpCache® WordPress HTTP Cache 1.9
wpCache® is a high-performance, distributed object, caching system application, generic in nature, but intended for use in speeding up dynamic web applications, by decreasing database load time. wpCache® decreases dramatically the page...
3.51 MB  
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  
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  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB