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.425.246 Times

DateTime::Calendar::Pataphysical 0.04

  Date Added: February 18, 2010  |  Visits: 1.006

DateTime::Calendar::Pataphysical

Report Broken Link
Printer Friendly Version


Product Homepage
Download (97 downloads)



DateTime::Calendar::Pataphysical is a Perl module with dates in the pataphysical calendar. SYNOPSIS use DateTime::Calendar::Pataphysical; $dt = DateTime::Calendar::Pataphysical->new( year => 1752, month => 10, day => 4 ); DateTime::Calendar::Pataphysical is the implementation of the pataphysical calendar. Each year in this calendar contains 13 months of 29 days. This regularity makes this a convenient alternative for the irregular Gregorian calendar. This module is designed to be easy to use in combination with DateTime. Most of its methods correspond to a DateTime method of the same name. METHODS new( ... ) This class method accepts parameters for each date and time component: "year", "month", "day". Additionally, it accepts a "locale" parameter. The "rd_secs" parameter is also accepted. This parameter is only useful in conversions to other calendars; this calendar does not use its value. from_epoch( epoch => $epoch, ... ) This class method can be used to construct a new object from an epoch time instead of components. Just as with the new() method, it accepts a "locale" parameter. now( ... ) This class method is equivalent to calling from_epoch() with the value returned from Perls time() function. from_object( object => $object, ... ) This class method can be used to construct a new object from any object that implements the utc_rd_values() method. All DateTime::Calendar modules must implement this method in order to provide cross-calendar compatibility. This method accepts a "locale" parameter. The time part of $object is stored, and will only be used if the created object is converted to another calendar. Only the date part of $object is used to calculate the Pataphysical date. This calculation is based on the local time and date of $object. last_day_of_month( ... ) This constructor takes the same arguments as can be given to the now() method, except for "day". Additionally, both "year" and "month" are required. clone This object method returns a replica of the given object. year Returns the year. month Returns the month of the year, from 1..13. month_name Returns the name of the current month. day_of_month, day, mday Returns the day of the month, from 1..29. day_of_week, wday, dow Returns the day of the week as a number, from 1..7, with 1 being Sunday and 7 being Saturday. day_name Returns the name of the current day of the week. day_of_year, doy Returns the day of the year. ymd( $optional_separator ), date mdy( $optional_separator ) dmy( $optional_separator ) Each method returns the year, month, and day, in the order indicated by the method name. Years are zero-padded to four digits. Months and days are 0-padded to two digits. By default, the values are separated by a dash (-), but this can be overridden by passing a value to the method. datetime Equivalent to $dt->ymd(-) . EP is_leap_year This method returns a true or false indicating whether or not the datetime object is in a leap year. week ($week_year, $week_number) = $dt->week Returns information about the calendar week which contains this datetime object. The values returned by this method are also available separately through the week_year and week_number methods. week_year Returns the year of the week. In the pataphysical calendar, this is equal to the year of the date, as all weeks fall in one year only. week_number Returns the week of the year, from 1..53. The 29th of each month falls outside of any week; week_number returns undef for these dates. utc_rd_values Returns the current UTC Rata Die days and seconds as a two element list. This exists primarily to allow other calendar modules to create objects based on the values provided by this object. utc_rd_as_seconds Returns the current UTC Rata Die days and seconds purely as seconds. This is useful when you need a single number to represent a date. strftime( $format, ... ) This method implements functionality similar to the strftime() method in C. However, if given multiple format strings, then it will return multiple elements, one for each format string. See DateTime for a list of all possible format specifiers. This module implements all specifiers related to dates. There is one additional specifier: %* represents the feast of that date. feast Returns the feast or vacuation of the given date. type_of_feast Returns the type of feast or vacuation. * means Fête Suprème Première première 1 means Fête Suprème Première seconde 2 means Fête Suprème Seconde 3 means Fête Suprème Tierce 4 means Fête Suprème Quarte v means Vacuation is_imaginary Returns true or false indicating whether the datetime object represents an imaginary date. set( .. ) This method can be used to change the local components of a date time, or its locale. This method accepts any parameter allowed by the new() method. truncate( to => ... ) This method allows you to reset some of the local time components in the object to their "zero" values. The "to" parameter is used to specify which values to truncate, and it may be one of "year", "month", or "day". add_duration( $duration_object ) This method adds a DateTime::Duration to the current datetime. See the DateTime::Duration docs for more detais. add( DateTime::Duration->new parameters ) This method is syntactic sugar around the add_duration() method. It simply creates a new DateTime::Duration object using the parameters given, and then calls the add_duration() method. subtract_duration( $duration_object ) When given a DateTime::Duration object, this method simply calls invert() on that object and passes that new duration to the add_duration method. subtract( DateTime::Duration->new parameters ) Like add(), this is syntactic sugar for the subtract_duration() method. subtract_datetime( $datetime ) This method returns a new DateTime::Duration object representing the difference between the two dates. compare $cmp = DateTime->compare($dt1, $dt2); @dates = sort { DateTime->compare($a, $b) } @dates; Compare two DateTime objects. The semantics are compatible with Perls sort() function; it returns -1 if $a < $b, 0 if $a == $b, 1 if $a > $b. Of course, since DateTime objects overload comparison operators, you can just do this anyway: @dates = sort @dates;.

Requirements: No special requirements
Platforms: Linux
Keyword: Datetime Libraries Programming Supr
Users rating: 0/10

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


DATETIME::CALENDAR::PATAPHYSICAL RELATED
Libraries  -  DateTime::TimeZone::SystemV 0.000
DateTime::TimeZone::SystemV is a Perl module with System V and POSIX timezone strings. SYNOPSIS use DateTime::TimeZone::SystemV; $tz = DateTime::TimeZone::SystemV->new("EST5EDT"); if($tz->is_floating) { ... if($tz->is_utc) { ......
8.19 KB  
Libraries  -  App::datetime 0.964
App::datetime is a date and time considerations. Most Enterprise development includes processing of dates and times. There are many date and time modules on CPAN, and choosing the right one can be confusing. There are no special perl data types...
122.88 KB  
Libraries  -  DateTime::Precise 1.05
DateTime::Precise can perform common time and date operations with additional GPS operations. SYNOPSIS use DateTime::Precise; use DateTime::Precise qw(:TimeVars); # Constructors and ways to set time. $t1 = DateTime::Precise->new; $t2 =...
34.82 KB  
Libraries  -  DateTime::Cron::Simple 0.2
DateTime::Cron::Simple is a Perl module that can parse a cron entry and check against current time. SYNOPSIS use DateTime::Cron::Simple; $c = DateTime::Cron::Simple->new($cron); $boolean = $c->validate_time; $c->new_cron($cron); This...
3.07 KB  
Libraries  -  DateTime::Format::Pg 0.15
DateTime::Format::Pg is a Perl module to parse and format PostgreSQL dates and times. SYNOPSIS use DateTime::Format::Pg; my $dt = DateTime::Format::Pg->parse_datetime( 2003-01-16 23:12:01 ); # 2003-01-16T23:12:01+0200...
19.46 KB  
Libraries  -  DateTime::Format::Builder 0.7807
DateTime::Format::Builder is a Perl module to create datetime parser classes and objects. SYNOPSIS package DateTime::Format::Brief; our $VERSION = 0.07; use DateTime::Format::Builder ( parsers => { parse_datetime => [ { regex =>...
48.13 KB  
Libraries  -  DateTime::Format::Epoch::TJD 0.10
DateTime::Format::Epoch::TJD is a Perl module that can convert DateTimes to/from Truncated Julian Days. SYNOPSIS use DateTime::Format::Epoch::TJD; my $dt = DateTime::Format::Epoch::TJD->parse_datetime( 13244.5 ); # 2004-08-27T00:00:00...
17.41 KB  
Libraries  -  DateTime::Format::Epoch 0.10
DateTime::Format::Epoch is a Perl module that can convert DateTimes to/from epoch seconds. SYNOPSIS use DateTime::Format::Epoch; my $dt = DateTime->new( year => 1970, month => 1, day => 1 ); my $formatter = DateTime::Format::Epoch->new(...
17.41 KB  
Libraries  -  DateTime::Format::Epoch::DotNet 0.10
DateTime::Format::Epoch::DotNet is a Perl module that can convert DateTimes to/from .NET epoch seconds. SYNOPSIS use DateTime::Format::Epoch::DotNet; my $dt = DateTime::Format::Epoch::DotNet->parse_datetime( 1051488000 );...
17.41 KB  
Libraries  -  DateTime::Format::Epoch::Unix 0.10
DateTime::Format::Epoch::Unix is a Perl module that can convert DateTimes to/from Unix epoch seconds. SYNOPSIS use DateTime::Format::Epoch::Unix; my $dt = DateTime::Format::Epoch::Unix->parse_datetime( 1051488000 ); # 2003-04-28T00:00:00...
17.41 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
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  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB