r45989 - in /trunk/libdate-calc-perl: ./ debian/ examples/ lib/Date/ lib/Date/Calc/ lib/Date/Calendar/ license/ t/ tools/
jawnsy-guest at users.alioth.debian.org
jawnsy-guest at users.alioth.debian.org
Sun Oct 18 14:17:03 UTC 2009
Author: jawnsy-guest
Date: Sun Oct 18 14:16:49 2009
New Revision: 45989
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=45989
Log:
New upstream release
Added:
trunk/libdate-calc-perl/lib/Date/Calc.pm
- copied unchanged from r45988, branches/upstream/libdate-calc-perl/current/lib/Date/Calc.pm
trunk/libdate-calc-perl/lib/Date/Calc.pod
- copied unchanged from r45988, branches/upstream/libdate-calc-perl/current/lib/Date/Calc.pod
trunk/libdate-calc-perl/lib/Date/Calc/PP.pm
- copied unchanged from r45988, branches/upstream/libdate-calc-perl/current/lib/Date/Calc/PP.pm
trunk/libdate-calc-perl/lib/Date/Calc/PP.pod
- copied unchanged from r45988, branches/upstream/libdate-calc-perl/current/lib/Date/Calc/PP.pod
trunk/libdate-calc-perl/lib/Date/Calendar.pm
- copied unchanged from r45988, branches/upstream/libdate-calc-perl/current/lib/Date/Calendar.pm
trunk/libdate-calc-perl/lib/Date/Calendar.pod
- copied unchanged from r45988, branches/upstream/libdate-calc-perl/current/lib/Date/Calendar.pod
trunk/libdate-calc-perl/license/
- copied from r45988, branches/upstream/libdate-calc-perl/current/license/
Removed:
trunk/libdate-calc-perl/Artistic.txt
trunk/libdate-calc-perl/Calc.pm
trunk/libdate-calc-perl/Calc.pod
trunk/libdate-calc-perl/Calc.xs
trunk/libdate-calc-perl/Calendar.pm
trunk/libdate-calc-perl/Calendar.pod
trunk/libdate-calc-perl/DateCalc.c
trunk/libdate-calc-perl/DateCalc.h
trunk/libdate-calc-perl/EXAMPLES.txt
trunk/libdate-calc-perl/GNU_GPL.txt
trunk/libdate-calc-perl/GNU_LGPL.txt
trunk/libdate-calc-perl/INSTALL.txt
trunk/libdate-calc-perl/README.htm
trunk/libdate-calc-perl/TOOLS.txt
trunk/libdate-calc-perl/ToolBox.h
trunk/libdate-calc-perl/examples/
trunk/libdate-calc-perl/tools/
trunk/libdate-calc-perl/typemap
Modified:
trunk/libdate-calc-perl/CHANGES.txt
trunk/libdate-calc-perl/CREDITS.txt
trunk/libdate-calc-perl/MANIFEST
trunk/libdate-calc-perl/META.yml
trunk/libdate-calc-perl/Makefile.PL
trunk/libdate-calc-perl/README.txt
trunk/libdate-calc-perl/debian/changelog
trunk/libdate-calc-perl/lib/Date/Calc/Object.pm
trunk/libdate-calc-perl/lib/Date/Calc/Object.pod
trunk/libdate-calc-perl/lib/Date/Calendar/Profiles.pm
trunk/libdate-calc-perl/lib/Date/Calendar/Profiles.pod
trunk/libdate-calc-perl/lib/Date/Calendar/Year.pm
trunk/libdate-calc-perl/lib/Date/Calendar/Year.pod
trunk/libdate-calc-perl/t/f000.t
trunk/libdate-calc-perl/t/f017.t
Modified: trunk/libdate-calc-perl/CHANGES.txt
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdate-calc-perl/CHANGES.txt?rev=45989&op=diff
==============================================================================
--- trunk/libdate-calc-perl/CHANGES.txt (original)
+++ trunk/libdate-calc-perl/CHANGES.txt Sun Oct 18 14:16:49 2009
@@ -1,5 +1,5 @@
====================================
- Package "Date::Calc" Version 6.0
+ Package "Date::Calc" Version 6.2
====================================
@@ -9,6 +9,15 @@
Version history:
----------------
+
+Version 6.2 16.10.2009
+
+ + Split the "Date::Calc" distribution into a pure-Perl and a C/XS part
+
+Version 6.1 15.10.2009
+
+ + United "Date::Calc" and "Date::Pcalc" into a single distribution
+ + Fixed Polish names of months and days of week (RT ticket #14159)
Version 6.0 07.10.2009
Modified: trunk/libdate-calc-perl/CREDITS.txt
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdate-calc-perl/CREDITS.txt?rev=45989&op=diff
==============================================================================
--- trunk/libdate-calc-perl/CREDITS.txt (original)
+++ trunk/libdate-calc-perl/CREDITS.txt Sun Oct 18 14:16:49 2009
@@ -1,5 +1,5 @@
====================================
- Package "Date::Calc" Version 6.0
+ Package "Date::Calc" Version 6.2
====================================
@@ -447,4 +447,17 @@
Many thanks to H. Merijn Brand <h.m.brand at xs4all.nl> for triggering
the development of a new normalized date difference function.
-
+Many thanks to Marek Snowarski <Marek.Snowarski at grzyby.pl> for
+raising my attention to the fact that the Polish names for the
+months and days of week were written wrongly.
+
+Many thanks to Piotr Wierzejewski <nlexposure at gmail.com> for
+providing me with the correct spelling of the Polish names
+for the months and days of week in Unicode.
+
+Many thanks to H.Merijn Brand <h.m.brand at xs4all.nl> for
+discussing the various issues and advantages/disadvantages
+of integrating versus splitting the C/XS-part and the pure-Perl
+part of this distribution with me!
+
+
Modified: trunk/libdate-calc-perl/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdate-calc-perl/MANIFEST?rev=45989&op=diff
==============================================================================
--- trunk/libdate-calc-perl/MANIFEST (original)
+++ trunk/libdate-calc-perl/MANIFEST Sun Oct 18 14:16:49 2009
@@ -1,44 +1,23 @@
-Artistic.txt
CHANGES.txt
CREDITS.txt
-Calc.pm
-Calc.pod
-Calc.xs
-Calendar.pm
-Calendar.pod
-DateCalc.c
-DateCalc.h
-EXAMPLES.txt
-GNU_GPL.txt
-GNU_LGPL.txt
-INSTALL.txt
-MANIFEST
-Makefile.PL
-README.htm
-README.txt
-TOOLS.txt
-ToolBox.h
-examples/anniversaries.pl
-examples/age_in_days_eu.pl
-examples/age_in_days_us.pl
-examples/bug.pl
-examples/cal.c
-examples/calendar.pl
-examples/datecalc.pl
-examples/delta.pl
-examples/holidays.pl
-examples/income.pl
-examples/linearcal.pl
-examples/nth_weekday.pl
-examples/time.pl
-examples/vacation.pl
-examples/weiberfastnacht.pl
+lib/Date/Calc.pm
+lib/Date/Calc.pod
lib/Date/Calc/Object.pm
lib/Date/Calc/Object.pod
+lib/Date/Calc/PP.pm
+lib/Date/Calc/PP.pod
+lib/Date/Calendar.pm
+lib/Date/Calendar.pod
lib/Date/Calendar/Profiles.pm
lib/Date/Calendar/Profiles.pod
lib/Date/Calendar/Year.pm
lib/Date/Calendar/Year.pod
+license/Artistic.txt
+license/GNU_GPL.txt
+license/GNU_LGPL.txt
+Makefile.PL
+MANIFEST
+README.txt
t/f000.t
t/f001.t
t/f002.t
@@ -90,10 +69,4 @@
t/m011.t
t/m012.t
t/m013.t
-tools/compile.bat
-tools/compile.pl
-tools/compile.sh
-tools/iso2pc.c
-tools/pc2iso.c
-typemap
META.yml Module meta-data (added by MakeMaker)
Modified: trunk/libdate-calc-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdate-calc-perl/META.yml?rev=45989&op=diff
==============================================================================
--- trunk/libdate-calc-perl/META.yml (original)
+++ trunk/libdate-calc-perl/META.yml Sun Oct 18 14:16:49 2009
@@ -1,14 +1,26 @@
--- #YAML:1.0
-name: Date-Calc
-version: 6.0
-abstract: ~
-license: ~
-author: ~
-generated_by: ExtUtils::MakeMaker version 6.42
-distribution_type: module
-requires:
- Bit::Vector: 7
- Carp::Clan: 5.3
+name: Date-Calc
+version: 6.2
+abstract: Gregorian calendar date calculations
+author:
+ - Steffen Beyer <STBEY at cpan.org>
+license: perl
+distribution_type: module
+configure_requires:
+ ExtUtils::MakeMaker: 0
+build_requires:
+ ExtUtils::MakeMaker: 0
+requires:
+ Bit::Vector: 7.1
+ Carp::Clan: 5.3
+no_index:
+ directory:
+ - t
+ - inc
+generated_by: ExtUtils::MakeMaker version 6.54
meta-spec:
- url: http://module-build.sourceforge.net/META-spec-v1.3.html
- version: 1.3
+ url: http://module-build.sourceforge.net/META-spec-v1.4.html
+ version: 1.4
+recommends:
+ Carp::Clan: 6.01
+ Date::Calc::XS: 6.2
Modified: trunk/libdate-calc-perl/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdate-calc-perl/Makefile.PL?rev=45989&op=diff
==============================================================================
--- trunk/libdate-calc-perl/Makefile.PL (original)
+++ trunk/libdate-calc-perl/Makefile.PL Sun Oct 18 14:16:49 2009
@@ -14,45 +14,41 @@
use ExtUtils::MakeMaker;
-use Config;
+BEGIN
+{
+ eval { require Config_m; }; # ExtUtils::FakeConfig (+ ActivePerl)
+ eval { require Config; } # Everyone else
+ if ($@);
+}
+
+print qq{\n};
+print qq{*************************************************************\n};
+print qq{****** BEWARE: Use "make install UNINST=1" to install! ******\n};
+print qq{*************************************************************\n};
+print qq{\n};
WriteMakefile(
'NAME' => 'Date::Calc',
- 'VERSION_FROM' => 'Calc.pm',
- 'PREREQ_PM' =>
- {
- 'Carp::Clan' => 5.3,
- 'Bit::Vector' => 7.0
- },
- 'OBJECT' => '$(O_FILES)',
-# ($] >= 5.005 ?
-# ('ABSTRACT' => 'Gregorian calendar date calculations',
-# 'AUTHOR' => 'Steffen Beyer <STBEY at cpan.org>') : ()),
-# ($] >= 5.005 && $^O eq 'MSWin32' && $Config{archname} =~ /-object\b/i ?
-# ('CAPI' => 'TRUE') : ()),
- 'dist' => { COMPRESS => "gzip -9", SUFFIX => "gz" }
+ 'VERSION_FROM' => 'lib/Date/Calc.pm',
+ 'ABSTRACT_FROM' => 'lib/Date/Calc.pod',
+ 'LICENSE' => 'perl',
+ 'AUTHOR' => 'Steffen Beyer <STBEY at cpan.org>',
+ 'PREREQ_PM' => {
+ 'Carp::Clan' => 5.3,
+ 'Bit::Vector' => 7.1
+ },
+ 'META_MERGE' => {
+ 'recommends' =>
+ {
+ 'Carp::Clan' => 6.01,
+ 'Date::Calc::XS' => 6.2
+ }
+ },
+ 'dist' => { COMPRESS => "gzip -9", SUFFIX => "gz" },
+# for ActivePerl:
+ ($] >= 5.005 && $^O eq 'MSWin32' && $Config::Config{'archname'} =~ /-object\b/i ?
+ ('CAPI' => 'TRUE') : ())
);
-
-my $patchlevel = $0;
-
-$patchlevel =~ s![^/\\]*$!patchlevel.h!;
-
-my $PATCHLEVEL = $Config{'PATCHLEVEL'} || $Config{'patchlevel'} || substr($],2,3);
-my $SUBVERSION = $Config{'SUBVERSION'} || $Config{'subversion'} || substr($],5) || 0;
-
-if (open(PATCHLEVEL, ">$patchlevel"))
-{
- print "Writing $patchlevel for $^X ($])\n";
- printf PATCHLEVEL "#define PATCHLEVEL %d\n", $PATCHLEVEL;
- printf PATCHLEVEL "#define SUBVERSION %d\n", $SUBVERSION;
- close(PATCHLEVEL);
-}
-else
-{
- warn "Oops: Couldn't write file '$patchlevel': $!\n";
- warn "However, you might succeed in building this module anyway;\n";
- warn "Just try it!\n";
-}
__END__
Modified: trunk/libdate-calc-perl/README.txt
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdate-calc-perl/README.txt?rev=45989&op=diff
==============================================================================
--- trunk/libdate-calc-perl/README.txt (original)
+++ trunk/libdate-calc-perl/README.txt Sun Oct 18 14:16:49 2009
@@ -1,155 +1,32 @@
====================================
- Package "Date::Calc" Version 6.0
+ Package "Date::Calc" Version 6.2
====================================
-
-
-This package is available for download either from my web site at
-
- http://www.engelschall.com/u/sb/download/
-
-or from any CPAN (= "Comprehensive Perl Archive Network") mirror server:
-
- http://www.perl.com/CPAN/authors/id/S/ST/STBEY/
Abstract:
---------
-This package consists of a C library (intended to make life easier for C
-developers) and a Perl module to access this library from Perl.
-
-The library provides all sorts of date calculations based on the Gregorian
-calendar (the one used in all western countries today), thereby complying
-with all relevant norms and standards: ISO/R 2015-1971, DIN 1355 and, to
-some extent, ISO 8601 (where applicable).
+This package provides all sorts of date calculations based on the Gregorian
+calendar (the one used in all western countries today).
The package is designed as an efficient (and fast) toolbox, not a bulky
ready-made application. It provides extensive documentation and examples
of use, multi-language support and special functions for business needs.
-The C library is specifically designed so that it can be used stand-alone,
-without Perl.
-
-Moreover, versions 5.x feature date objects (in addition to the functional
-interface) with overloaded operators, and a set of modules for calculations
-which take local holidays into account (both additions in Perl only, however).
+Moreover, it optionally provides an object-oriented interface with overloaded
+operators for greater convenience, and calendar objects which support
+profiles of legal holidays and observances for calculations which need to
+take those into account.
-What's new in version 6.0:
+What's new in version 6.2:
--------------------------
- + Added new functions "N_Delta_YMDHMS()", "Add_N_Delta_YMD()"
- and "Add_N_Delta_YMDHMS()" to "Date::Calc"
- + Added more tests to "t/f037.t" for these new functions
- + Added a new "normalized" mode to "Date::Calc::Object" which
- uses the new functions "N_Delta_YMD()", "N_Delta_YMDHMS()",
- "Add_N_Delta_YMD()" and "Add_N_Delta_YMDHMS()"
- + Added test scripts "t/m012.t" and "t/m013.t" for this new mode
- + The language can now be set individually for each function
- in "Date::Calc" that requires it (through a new optional
- parameter; the default continues to be a global setting
- for backward compatibility); the affected functions are:
- "Decode_Month()", "Decode_Day_of_Week()", "Compressed_to_Text()",
- "Date_to_Text()", "Date_to_Text_Long()", "Calendar()",
- "Month_to_Text()", "Day_of_Week_to_Text()", "Day_of_Week_Abbreviation()",
- "Decode_Date_EU()", "Decode_Date_US()", "Decode_Date_EU2()",
- "Decode_Date_US2()", "Parse_Date()".
- + BEWARE that the interface of "DateCalc.c" has changed!
- + Module "Date::Calc::Object" has been changed similarly
- + Module "Date::Calendar::Year" has also been adapted accordingly
- + Many test scripts have been changed to reflect the modifications
- in "Date::Calc", "Date::Calc::Object" and "Date::Calendar::Year"
- and more test cases have been added
- + Updated the documentation to reflect all changes
- + Updated version numbers of dependencies in "t/f000.t"
+ + Split the "Date::Calc" distribution into a pure-Perl and a C/XS part
-Backward compatibility:
------------------------
-
-Module "Date::Calc" should be 100% backward compatible, meaning
-that no changes to existing code using reasonably recent versions
-of "Date::Calc" should be necessary (consult the changes history
-in file "CHANGES.txt" for possible incompatible changes between
-versions).
-
-Note that when you pass an invalid language number to any of the
-affected functions, you will get the previous behaviour, in which
-a global variable (set by the function "Language()") determines
-the language to be used.
-
-Note again that this new language parameter in the affected functions
-is optional; omitting it gives you the previous behaviour with the
-global variable as well (this is where the compatibility with existing
-code stems from).
-
-When using the C library "DateCalc.c", where omitting a parameter
-is not an option, passing a zero for the language is therefore the
-recommended way to guarantee backward compatibility and to keep
-changes to existing code to a minimum.
-
-Modules "Date::Calc::Object" and "Date::Calendar::Year" should be
-backward compatible as well (modules "Date::Calendar" and
-"Date::Calendar::Profiles" have not been changed).
-
-However, because the global variable (the one set by the function
-"Language()") is not set temporarily anymore by language-dependent
-methods and overridden operators (and restituted at the end, very
-similar to the "local" operator in Perl), you might perceive
-differences if your existing code relied on these implementation
-details (some test cases in the test suite of this package tested
-this and had therefore to be changed).
-
-The advantage to be gained by all this is that now, all modules
-in this package should be thread-safe and safe to be used by
-several concurrently executed modules, as long as you do not
-set the language using the global function "Language()" or the
-CLASS method "language()" (and as long as you do not use any
-other global setting, for that matter), but EXCLUSIVELY by
-passing the language parameter to all functions individually
-and by using the OBJECT method "language()".
-
-By exclusively using local settings, you are also making your
-code invulnerable against other, concurrent modules which still
-use global settings.
-
-
-New features in version 5.0:
-----------------------------
-
- * Many new functions in Date::Calc
- (but the module continues to be small, fast and simple)
-
- * Optionally, Date::Calc objects with overloaded operators
- for more ease of use (when speed is not so critical)
-
- * An optional module for performing date calculations which
- take holidays into account, e.g., today plus 60 workdays,
- what date gives that? Or how many workdays are there
- between two dates?
-
- * A library containing profiles for a large number of countries
- with all their legal holidays (i.e., you get a day off) and
- many commemorative days (you don't)
-
- * The possibility to create your own profiles for any special
- needs you may have, for instance for schools, banks, stock
- market, birthdays of relatives and friends, ...
-
- * It is easy to generate calendars for any of these profiles
- and any year you like - there is a script to do so on the
- command line, and a CGI script for doing so on the web
-
- * A couple of new example scripts to illustrate the use of
- the various modules
-
- * Modularized, tailor-made components to assist you in particular
- tasks, instead of one bulky application larger than your own
- costing lots of overhead for features you do not need or want
-
-
-Legal issues:
--------------
+Copyright & License:
+--------------------
This package with all its parts is
@@ -157,269 +34,35 @@
All rights reserved.
This package is free software; you can use, modify and redistribute
-it under the same terms as Perl itself, i.e., under the terms of
-the "Artistic License" or the "GNU General Public License".
+it under the same terms as Perl itself, i.e., at your option, under
+the terms either of the "Artistic License" or the "GNU General Public
+License".
-The C library at the core of this Perl module can additionally
-be used, modified and redistributed under the terms of the
-"GNU Library General Public License".
+The C library at the core of the module "Date::Calc::XS" can, at your
+discretion, also be used, modified and redistributed under the terms
+of the "GNU Library General Public License".
Please refer to the files "Artistic.txt", "GNU_GPL.txt" and
-"GNU_LGPL.txt" in this distribution, respectively, for details!
-
-
-Prerequisites:
---------------
-
-Perl version 5.000 or higher, and an ANSI C compiler. (!)
- ^^^^^^
-Module "Carp::Clan" version 5.3 or higher.
-
-Optionally, module "Bit::Vector" version 7.0 or newer.
-
-If you plan to use the modules "Date::Calendar" or
-"Date::Calendar::Year" from this package, you will
-also need the module "Bit::Vector" version 7.0 or
-newer (which also needs an ANSI C compiler!).
-
-Otherwise you may safely ignore the warning message
-"Warning: prerequisite Bit::Vector 7.0 not found at ..."
-when running "perl Makefile.PL".
-
-Anyway, you can always install "Bit::Vector" later
-at any time if you change your mind.
-
-Note that in order to compile Perl modules which contain
-C (and/or XS) code (such as this one), you always HAVE
-to use the very same compiler your Perl itself was compiled
-with.
-
-Many vendors nowadays ship their operating system already
-comprising a precompiled version of Perl. Many times the
-compilers used to compile this version of Perl are not
-available to or not usually used by the users of these
-operating systems.
-
-In such cases building this module (or any other Perl
-module containing C and/or XS code) will not work. You
-will either have to get the compiler which was used to
-compile Perl itself (see for example the section "Compiler:"
-in the output of the command "perl -V"), or to build
-your own Perl with the compiler of your choice (which
-also allows you to take advantage of the various compile-
-time switches Perl offers).
-
-Note that Sun Solaris and Red Hat Linux frequently were
-reported to suffer from this kind of problem.
-
-Moreover, you usually cannot build any modules under
-Windows 95/98 since the Win 95/98 command shell doesn't
-support the "&&" operator. You will need the Windows NT
-command shell ("cmd.exe") or the "4DOS" shell to be
-installed on your Windows 95/98 system first. Note that
-Windows NT, Windows 2000 and Windows XP are not affected
-and just work fine. I don't know about Windows Vista and
-Windows 7, however.
-
-Note that ActiveState provides precompiled binaries of
-this module for their Win32 port of Perl ("ActivePerl")
-on their web site, which you should be able to install
-simply by typing "ppm install Date-Calc" in your MS-DOS
-command shell (but note the "-" instead of "::" in the
-package name!). This also works under Windows 95/98 (!).
-
-If your firewall prevents "ppm" from downloading
-this package, you can also download it manually from
-http://www.activestate.com/ppmpackages/5.005/zips/ or
-http://www.activestate.com/ppmpackages/5.6/zips/.
-Follow the installation instructions included in
-the "zip" archive.
-
-Note also that a "plain Perl" version of "Date::Calc" called
-"Date::Pcalc" exists (written by J. David Eisenberg); you
-should be able to download it from the same place where
-you found this package, or from David's web site at
-http://catcode.com/date/pcalc.html.
-
-
-Note to CPAN Testers:
----------------------
-
-After completion, version 6.0 of this module has already
-been tested successfully with the following configurations:
-
- Perl 5.005_03 - Windows XP SP3 & MS VC++ 6.0 (native Perl build)
- Perl 5.8.0 - Windows XP SP3 & MS VC++ 6.0 (native Perl build)
- Perl 5.10.1 - Windows XP SP3 & MS VC++ 6.0 (native Perl build)
- Perl 5.10.1 - FreeBSD 7.2-STABLE
+"GNU_LGPL.txt" in the "license" subdirectory of this distribution
+for any details!
Installation:
-------------
-Please see the file "INSTALL.txt" in this distribution for instructions
-on how to install this package.
+perl Makefile.PL
+make
+make test
+make install UNINST=1
-It is essential that you read this file since one of the special cases
-described in it might apply to you, especially if you are running Perl
-under Windows.
+Under Windows, depending on your environment,
+use "nmake" or "dmake" instead of "make".
-Adding more languages:
-----------------------
+Contact Author:
+---------------
-Please see the corresponding section in the file "INSTALL.txt" in this
-distribution for detailed instructions on how to add other languages.
+Steffen Beyer <STBEY at cpan.org>
+http://www.engelschall.com/u/sb/download/
-Changes over previous versions:
--------------------------------
-
-Please refer to the file "CHANGES.txt" in this distribution for a more
-detailed version history log.
-
-
-Documentation:
---------------
-
-The documentation of this package is included in POD format (= "Plain
-Old Documentation") in the files with the extension ".pod" in this
-distribution, the human-readable markup-language standard for Perl
-documentation.
-
-By building this package, this documentation will automatically be
-converted into man pages, which will automatically be installed in
-your Perl tree for further reference through the installation process,
-where they can be accessed by the commands "man Date::Calc" (Unix)
-and "perldoc Date::Calc" (Unix and Win32 alike), for example.
-
-Available man pages:
-
- Carp::Clan(3)
- Date::Calc(3)
- Date::Calc::Object(3)
- Date::Calendar(3)
- Date::Calendar::Profiles(3)
- Date::Calendar::Year(3)
-
-If Perl is not available on your system, you can also read the ".pod"
-files
-
- ./Calc.pod
- ./Calendar.pod
- ./lib/Carp/Clan.pod
- ./lib/Date/Calc/Object.pod
- ./lib/Date/Calendar/Profiles.pod
- ./lib/Date/Calendar/Year.pod
-
-directly.
-
-
-What does it do:
-----------------
-
-This package performs date calculations based on the Gregorian calendar
-(the one used in all western countries today), thereby complying with
-all relevant norms and standards: ISO/R 2015-1971, DIN 1355 and, to
-some extent, ISO 8601 (where applicable).
-
-See also http://www.engelschall.com/u/sb/download/Date-Calc/DIN1355/
-for a scan of part of the "DIN 1355" document (in German).
-
-The module of course handles year numbers of 2000 and above correctly
-("Year 2000" or "Y2K" compliance) -- actually all year numbers from 1
-to the largest positive integer representable on your system (which
-is at least 32767) can be dealt with.
-
-Note that this package projects the Gregorian calendar back until the
-year 1 A.D. -- even though the Gregorian calendar was only adopted
-in 1582, mostly by the Catholic European countries, in obedience to
-the corresponding decree of Pope Gregory XIII in that year.
-
-Some (mainly protestant) countries continued to use the Julian calendar
-(used until then) until as late as the beginning of the 20th century.
-
-Therefore, do *NEVER* write something like "99" when you really mean
-"1999" - or you may get wrong results!
-
-Finally, note that this package is not intended to do everything you could
-ever imagine automagically :-) for you; it is rather intended to serve as a
-toolbox (in the best of UNIX spirit and tradition) which should, however,
-always get you where you need and want to go.
-
-See the section "RECIPES" at the end of the manual pages for solutions
-to common problems!
-
-If nevertheless you can't figure out how to solve a particular problem,
-please let me know! (See e-mail address at the bottom of this file.)
-
-The new module "Date::Calc::Object" adds date objects to the (functional)
-"Date::Calc" module (just "use Date::Calc::Object qw(...);" INSTEAD of
-"use Date::Calc qw(...);"), plus built-in operators like +,+=,++,-,-=,--,
-<=>,<,<=,>,>=,==,!=,cmp,lt,le,gt,ge,eq,ne,abs(),"" and true/false
-testing, as well as a number of other useful methods.
-
-The new modules "Date::Calendar::Year" and "Date::Calendar" allow you
-to create calendar objects (for a single year or arbitrary (dynamic)
-ranges of years, respectively) for different countries/states/locations/
-companies/individuals which know about all local holidays, and which allow
-you to perform calculations based on work days (rather than just days),
-like calculating the difference between two dates in terms of work days,
-or adding/subtracting a number of work days to/from a date to yield a
-new date. The dates in the calendar are also tagged with their names,
-so that you can find out the name of a given day, or search for the
-date of a given holiday.
-
-
-Note to C developers:
----------------------
-
-Note again that the C library at the core of this module can also be
-used stand-alone (i.e., it contains no inter-dependencies whatsoever
-with Perl).
-
-The library itself consists of three files: "DateCalc.c", "DateCalc.h"
-and "ToolBox.h".
-
-Just compile "DateCalc.c" (which automatically includes "ToolBox.h")
-and link the resulting output file "DateCalc.o" with your application,
-which in turn should include "ToolBox.h" and "DateCalc.h" (in this order).
-
-
-Example applications:
----------------------
-
-Please refer to the file "EXAMPLES.txt" in this distribution for details
-about the example applications in the "examples" subdirectory.
-
-
-Tools:
-------
-
-Please refer to the file "TOOLS.txt" in this distribution for details
-about the various tools to be found in the "tools" subdirectory.
-
-
-Credits:
---------
-
-Please refer to the file "CREDITS.txt" in this distribution for a list
-of contributors.
-
-
-Author's note:
---------------
-
-If you have any questions, suggestions or need any assistance, please
-let me know!
-
-Please do send feedback, this is essential for improving this module
-according to your needs!
-
-I hope you will find this module useful. Enjoy!
-
-Yours,
---
- Steffen Beyer <STBEY at cpan.org> http://www.engelschall.com/u/sb/
- "There is enough for the need of everyone in this world, but not
- for the greed of everyone." - Mohandas Karamchand "Mahatma" Gandhi
Modified: trunk/libdate-calc-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdate-calc-perl/debian/changelog?rev=45989&op=diff
==============================================================================
--- trunk/libdate-calc-perl/debian/changelog (original)
+++ trunk/libdate-calc-perl/debian/changelog Sun Oct 18 14:16:49 2009
@@ -1,3 +1,9 @@
+libdate-calc-perl (6.2-1) UNRELEASED; urgency=low
+
+ * New upstream release
+
+ -- Jonathan Yu <jawnsy at cpan.org> Sun, 18 Oct 2009 06:38:48 -0400
+
libdate-calc-perl (6.0-1) unstable; urgency=low
* New upstream release
Modified: trunk/libdate-calc-perl/lib/Date/Calc/Object.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdate-calc-perl/lib/Date/Calc/Object.pm?rev=45989&op=diff
==============================================================================
--- trunk/libdate-calc-perl/lib/Date/Calc/Object.pm (original)
+++ trunk/libdate-calc-perl/lib/Date/Calc/Object.pm Sun Oct 18 14:16:49 2009
@@ -38,7 +38,7 @@
%EXPORT_TAGS = (all => [@Date::Calc::EXPORT_OK],
aux => [@AUXILIARY],
ALL => [@EXPORT_OK]);
- $VERSION = '6.0';
+ $VERSION = '6.2';
Date::Calc->import(@Date::Calc::EXPORT, at Date::Calc::EXPORT_OK);
}
Modified: trunk/libdate-calc-perl/lib/Date/Calc/Object.pod
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdate-calc-perl/lib/Date/Calc/Object.pod?rev=45989&op=diff
==============================================================================
--- trunk/libdate-calc-perl/lib/Date/Calc/Object.pod (original)
+++ trunk/libdate-calc-perl/lib/Date/Calc/Object.pod Sun Oct 18 14:16:49 2009
@@ -1306,7 +1306,7 @@
=head1 VERSION
-This man page documents "Date::Calc::Object" version 6.0.
+This man page documents "Date::Calc::Object" version 6.2.
=head1 AUTHOR
@@ -1320,12 +1320,18 @@
=head1 LICENSE
-This package is free software; you can redistribute it and/or
-modify it under the same terms as Perl itself, i.e., under the
-terms of the "Artistic License" or the "GNU General Public License".
-
-Please refer to the files "Artistic.txt" and "GNU_GPL.txt"
-in this distribution for details!
+This package is free software; you can use, modify and redistribute
+it under the same terms as Perl itself, i.e., at your option, under
+the terms either of the "Artistic License" or the "GNU General Public
+License".
+
+The C library at the core of the module "Date::Calc::XS" can, at your
+discretion, also be used, modified and redistributed under the terms
+of the "GNU Library General Public License".
+
+Please refer to the files "Artistic.txt", "GNU_GPL.txt" and
+"GNU_LGPL.txt" in the "license" subdirectory of this distribution
+for any details!
=head1 DISCLAIMER
Modified: trunk/libdate-calc-perl/lib/Date/Calendar/Profiles.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdate-calc-perl/lib/Date/Calendar/Profiles.pm?rev=45989&op=diff
==============================================================================
--- trunk/libdate-calc-perl/lib/Date/Calendar/Profiles.pm (original)
+++ trunk/libdate-calc-perl/lib/Date/Calendar/Profiles.pm Sun Oct 18 14:16:49 2009
@@ -35,7 +35,7 @@
&Advent
);
-$VERSION = '6.0';
+$VERSION = '6.2';
use Date::Calc qw(:all);
use Carp::Clan qw(^Date::);
Modified: trunk/libdate-calc-perl/lib/Date/Calendar/Profiles.pod
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdate-calc-perl/lib/Date/Calendar/Profiles.pod?rev=45989&op=diff
==============================================================================
--- trunk/libdate-calc-perl/lib/Date/Calendar/Profiles.pod (original)
+++ trunk/libdate-calc-perl/lib/Date/Calendar/Profiles.pod Sun Oct 18 14:16:49 2009
@@ -542,7 +542,7 @@
=head1 VERSION
-This man page documents "Date::Calendar::Profiles" version 6.0.
+This man page documents "Date::Calendar::Profiles" version 6.2.
=head1 AUTHOR
@@ -556,12 +556,18 @@
=head1 LICENSE
-This package is free software; you can redistribute it and/or
-modify it under the same terms as Perl itself, i.e., under the
-terms of the "Artistic License" or the "GNU General Public License".
-
-Please refer to the files "Artistic.txt" and "GNU_GPL.txt"
-in this distribution for details!
+This package is free software; you can use, modify and redistribute
+it under the same terms as Perl itself, i.e., at your option, under
+the terms either of the "Artistic License" or the "GNU General Public
+License".
+
+The C library at the core of the module "Date::Calc::XS" can, at your
+discretion, also be used, modified and redistributed under the terms
+of the "GNU Library General Public License".
+
+Please refer to the files "Artistic.txt", "GNU_GPL.txt" and
+"GNU_LGPL.txt" in the "license" subdirectory of this distribution
+for any details!
=head1 DISCLAIMER
Modified: trunk/libdate-calc-perl/lib/Date/Calendar/Year.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdate-calc-perl/lib/Date/Calendar/Year.pm?rev=45989&op=diff
==============================================================================
--- trunk/libdate-calc-perl/lib/Date/Calendar/Year.pm (original)
+++ trunk/libdate-calc-perl/lib/Date/Calendar/Year.pm Sun Oct 18 14:16:49 2009
@@ -25,7 +25,7 @@
%EXPORT_TAGS = (all => [@EXPORT_OK]);
-$VERSION = '6.0';
+$VERSION = '6.2';
use Bit::Vector;
use Carp::Clan qw(^Date::);
Modified: trunk/libdate-calc-perl/lib/Date/Calendar/Year.pod
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdate-calc-perl/lib/Date/Calendar/Year.pod?rev=45989&op=diff
==============================================================================
--- trunk/libdate-calc-perl/lib/Date/Calendar/Year.pod (original)
+++ trunk/libdate-calc-perl/lib/Date/Calendar/Year.pod Sun Oct 18 14:16:49 2009
@@ -855,7 +855,7 @@
=head1 VERSION
-This man page documents "Date::Calendar::Year" version 6.0.
+This man page documents "Date::Calendar::Year" version 6.2.
=head1 AUTHOR
@@ -869,12 +869,18 @@
=head1 LICENSE
-This package is free software; you can redistribute it and/or
-modify it under the same terms as Perl itself, i.e., under the
-terms of the "Artistic License" or the "GNU General Public License".
-
-Please refer to the files "Artistic.txt" and "GNU_GPL.txt"
-in this distribution for details!
+This package is free software; you can use, modify and redistribute
+it under the same terms as Perl itself, i.e., at your option, under
+the terms either of the "Artistic License" or the "GNU General Public
+License".
+
+The C library at the core of the module "Date::Calc::XS" can, at your
+discretion, also be used, modified and redistributed under the terms
+of the "GNU Library General Public License".
+
+Please refer to the files "Artistic.txt", "GNU_GPL.txt" and
+"GNU_LGPL.txt" in the "license" subdirectory of this distribution
+for any details!
=head1 DISCLAIMER
Modified: trunk/libdate-calc-perl/t/f000.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdate-calc-perl/t/f000.t?rev=45989&op=diff
==============================================================================
--- trunk/libdate-calc-perl/t/f000.t (original)
+++ trunk/libdate-calc-perl/t/f000.t Sun Oct 18 14:16:49 2009
@@ -15,14 +15,17 @@
# ======================================================================
$Carp::Clan::VERSION = $Carp::Clan::VERSION = 0;
+$Date::Calc::XS_OK = $Date::Calc::XS_OK = 0;
$Date::Calc::VERSION = $Date::Calc::VERSION = 0;
+$Date::Calc::PP::VERSION = $Date::Calc::PP::VERSION = 0;
+$Date::Calc::XS::VERSION = $Date::Calc::XS::VERSION = 0;
$Date::Calc::Object::VERSION = $Date::Calc::Object::VERSION = 0;
$Date::Calendar::Profiles::VERSION = $Date::Calendar::Profiles::VERSION = 0;
$Date::Calendar::Year::VERSION = $Date::Calendar::Year::VERSION = 0;
$Date::Calendar::VERSION = $Date::Calendar::VERSION = 0;
$Bit::Vector::VERSION = $Bit::Vector::VERSION = 0;
-$tests = 9;
+$tests = 11;
eval { require Bit::Vector; };
@@ -54,13 +57,32 @@
{print "ok $n\n";} else {print "not ok $n\n";}
$n++;
-if ($Date::Calc::VERSION eq '6.0')
+if ($Date::Calc::VERSION eq '6.2')
{print "ok $n\n";} else {print "not ok $n\n";}
$n++;
-if (&Date::Calc::Version() eq '6.0')
+if (&Date::Calc::Version() eq '6.2')
{print "ok $n\n";} else {print "not ok $n\n";}
$n++;
+
+if ($Date::Calc::XS_OK || 0)
+{
+ if ($Date::Calc::XS::VERSION eq '6.2')
+ {print "ok $n\n";} else {print "not ok $n\n";}
+ $n++;
+ if (&Date::Calc::XS::Version() eq '6.2')
+ {print "ok $n\n";} else {print "not ok $n\n";}
+ $n++;
+}
+else
+{
+ if ($Date::Calc::PP::VERSION eq '6.2')
+ {print "ok $n\n";} else {print "not ok $n\n";}
+ $n++;
+ if (&Date::Calc::PP::Version() eq '6.2')
+ {print "ok $n\n";} else {print "not ok $n\n";}
+ $n++;
+}
eval
{
@@ -71,7 +93,7 @@
{print "ok $n\n";} else {print "not ok $n\n";}
$n++;
-if ($Date::Calc::Object::VERSION eq '6.0')
+if ($Date::Calc::Object::VERSION eq '6.2')
{print "ok $n\n";} else {print "not ok $n\n";}
$n++;
@@ -84,17 +106,17 @@
{print "ok $n\n";} else {print "not ok $n\n";}
$n++;
-if ($Date::Calendar::Profiles::VERSION eq '6.0')
+if ($Date::Calendar::Profiles::VERSION eq '6.2')
{print "ok $n\n";} else {print "not ok $n\n";}
$n++;
exit 0 if $n > $tests;
-if ($Bit::Vector::VERSION >= '7.0')
+if ($Bit::Vector::VERSION >= '7.1')
{print "ok $n\n";} else {print "not ok $n\n";}
$n++;
-if (&Bit::Vector::Version() >= '7.0')
+if (&Bit::Vector::Version() >= '7.1')
{print "ok $n\n";} else {print "not ok $n\n";}
$n++;
@@ -107,7 +129,7 @@
{print "ok $n\n";} else {print "not ok $n\n";}
$n++;
-if ($Date::Calendar::Year::VERSION eq '6.0')
+if ($Date::Calendar::Year::VERSION eq '6.2')
{print "ok $n\n";} else {print "not ok $n\n";}
$n++;
@@ -120,7 +142,7 @@
{print "ok $n\n";} else {print "not ok $n\n";}
$n++;
-if ($Date::Calendar::VERSION eq '6.0')
+if ($Date::Calendar::VERSION eq '6.2')
{print "ok $n\n";} else {print "not ok $n\n";}
$n++;
Modified: trunk/libdate-calc-perl/t/f017.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdate-calc-perl/t/f017.t?rev=45989&op=diff
==============================================================================
--- trunk/libdate-calc-perl/t/f017.t (original)
+++ trunk/libdate-calc-perl/t/f017.t Sun Oct 18 14:16:49 2009
@@ -39,8 +39,6 @@
if (Day_of_Week_to_Text(7) eq "Sunday")
{print "ok $n\n";} else {print "not ok $n\n";}
$n++;
-
-print "Language = " . Language_to_Text(Language()) . "\n";
if (($t = Day_of_Week_to_Text(1,0)) eq "Monday")
{print "ok $n\n";} else {print "not ok $n ($t)\n";}
More information about the Pkg-perl-cvs-commits
mailing list