"Fossies" - the Fresh Open Source Software Archive

Member "Date-Calc-6.4/CHANGES.txt" (7 Mar 2015, 16927 Bytes) of package /linux/privat/Date-Calc-6.4.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "CHANGES.txt": 6.3_vs_6.4.

    1                      ====================================
    2                        Package "Date::Calc" Version 6.4
    3                      ====================================
    4 
    5 
    6                   Copyright (c) 1995 - 2015 by Steffen Beyer.
    7                              All rights reserved.
    8 
    9 
   10 Version history:
   11 ----------------
   12 
   13 Version 6.4   07.03.2015
   14 
   15  +  Fixed t/f016.t, t/f027.t and t/f028.t which started failing on 01/01/2015
   16  +  Fixed t/f035.t which gave a warning "Unescaped left brace in regex is deprecated"
   17     with Perl 5.21.x
   18 
   19 Version 6.3   31.10.2009
   20 
   21  +  Changed "Mktime()" to use "POSIX::mktime()"
   22  +  Fixed the bug that "Date::Calc::PP" was never tested
   23     when "Date::Calc::XS" is installed
   24 
   25 Version 6.2   16.10.2009
   26 
   27  +  Split the "Date::Calc" distribution into a pure-Perl and a C/XS part
   28 
   29 Version 6.1   15.10.2009
   30 
   31  +  United "Date::Calc" and "Date::Pcalc" into a single distribution
   32  +  Fixed Polish names of months and days of week (RT ticket #14159)
   33 
   34 Version 6.0   07.10.2009
   35 
   36  +  Added new functions "N_Delta_YMDHMS()", "Add_N_Delta_YMD()"
   37     and "Add_N_Delta_YMDHMS()" to "Date::Calc"
   38  +  Added more tests to "t/f037.t" for these new functions
   39  +  Added a new "normalized" mode to "Date::Calc::Object" which
   40     uses the new functions "N_Delta_YMD()", "N_Delta_YMDHMS()",
   41     "Add_N_Delta_YMD()" and "Add_N_Delta_YMDHMS()"
   42  +  Added test scripts "t/m012.t" and "t/m013.t" for this new mode
   43  +  The language can now be set individually for each function
   44     in "Date::Calc" that requires it (through a new optional
   45     parameter; the default continues to be a global setting
   46     for backward compatibility); the affected functions are:
   47     "Decode_Month()", "Decode_Day_of_Week()", "Compressed_to_Text()",
   48     "Date_to_Text()", "Date_to_Text_Long()", "Calendar()",
   49     "Month_to_Text()", "Day_of_Week_to_Text()", "Day_of_Week_Abbreviation()",
   50     "Decode_Date_EU()", "Decode_Date_US()", "Decode_Date_EU2()",
   51     "Decode_Date_US2()", "Parse_Date()".
   52  +  BEWARE that the interface of "DateCalc.c" has changed!
   53  +  Module "Date::Calc::Object" has been changed similarly
   54  +  Module "Date::Calendar::Year" has also been adapted accordingly
   55  +  Many test scripts have been changed to reflect the modifications
   56     in "Date::Calc", "Date::Calc::Object" and "Date::Calendar::Year"
   57     and more test cases have been added
   58  +  Updated the documentation to reflect all changes
   59  +  Updated version numbers of dependencies in "t/f000.t"
   60 
   61 Version 5.8   12.09.2009
   62 
   63  +  Added a new function "N_Delta_YMD()"
   64  +  Added a new test script "t/f037.t"
   65  +  Updated the "Calc.pod" manual page accordingly
   66  +  Renamed "calendar.cgi" in the "examples"
   67     subdirectory to "calendar.pl"
   68  +  Added a new CGI script named "datecalc.pl"
   69     to the "examples" subdirectory
   70 
   71 Version 5.7   23.08.2009
   72 
   73  +  Fixed "october" => "oktober" in Dutch
   74  +  Disabled the special abbreviated names
   75     of the days of the week in Portuguese
   76  +  Made the days which form the weekend con-
   77     figurable in "Calendar.pm" and "Year.pm"
   78  +  Added some test cases for this new feature
   79     in "t/m008.t"
   80  +  The file "examples/calendar.cgi" now
   81     also supports this new feature
   82  +  Updated "README.txt" and "INSTALL.txt"
   83     and the dependency on "Bit::Vector" 7.0
   84  +  Added an additional "README.htm" file to this
   85     distribution highlighting its key points
   86  +  Updated the documentation of "Date::Calc",
   87     "Date::Calendar", "Date::Calendar::Profiles",
   88     "Date::Calendar::Year" and "Date::Object"
   89  +  See the new module "Date::Calc::Util" (which
   90     is available separately; to be released soon)
   91     for all the shortcuts you ever wanted to have
   92     in "Date::Calc"
   93 
   94 Version 5.6   28.07.2009
   95 
   96  +  Made the module MacOS X compatible
   97  +  Made some tiny changes to the documentation
   98 
   99 Version 5.5   was skipped due to an unauthorized upload by someone else
  100 
  101 Version 5.4   03.10.2004
  102 
  103  +  Added compiler directives for C++.
  104  +  Removed "Carp::Clan" from the distribution (available separately).
  105  +  Fixed bug in initialization of "Date::Calendar::Year" objects.
  106  +  Added method "tags()" to "Date::Calendar" and "Date::Calendar::Year".
  107  +  Fixed the formula for "Labor Day" in the U.S. to "1/Mon/Sep".
  108  +  Added a new recipe to the "Date::Calc" documentation.
  109  +  Added Romanian to the list of languages supported by "Date::Calc".
  110  +  Changed the example script "calendar.cgi" to highlight the name
  111     which led to a given date being a holiday.
  112  +  Fixed the Polish entries in "Date::Calc".
  113  +  Added a few commemorative days to the Norwegian calendar profile.
  114  +  Added "use bytes" to all Perl files to avoid problems on systems
  115     not using the standard locale "C".
  116  +  Fixed test 5 of t/m005.t to (hopefully) work under other locales.
  117 
  118 Version 5.3   29.09.2002
  119 
  120  +  Simplified the error message handlers in "Calc.xs".
  121 
  122 Version 5.2   18.09.2002
  123 
  124  +  Changed the Polish profiles from ISO-Latin-2 to ISO-Latin-1.
  125  +  Fixed the broken tests in "t/f034.t" and "t/m006.t".
  126  +  Synchronized "Carp::Clan" and "ToolBox.h" with "Bit::Vector" 6.2.
  127 
  128 Version 5.1   08.09.2002
  129 
  130  +  Integrated modifications needed for MacOS / MacPerl.
  131  +  Added new method "normalize()" (Date::Calc::Object).
  132  +  Added a new test script "t/m011.t" for "normalize()".
  133  +  Added a calendar profile for Mexico (Date::Calendar::Profiles).
  134  +  Little additions to and corrections of the documentation (Date::Calc).
  135  +  Added Polish (Date::Calc) and a calendar profile for Poland.
  136  +  Added Hungarian (Date::Calc).
  137  +  Added some more commemorative days to the profile of Brazil.
  138 
  139 Version 5.0   10.10.2001
  140 
  141 Module "Date::Calc":
  142 
  143  +  Added the following new functions:
  144      *  check_time()
  145      *  Delta_YMD()
  146      *  Delta_YMDHMS()
  147      *  Add_Delta_YM()
  148      *  Add_Delta_YMDHMS()
  149      *  Normalize_DHMS()
  150      *  This_Year()
  151      *  Gmtime()
  152      *  Localtime()
  153      *  Mktime()
  154      *  Timezone()
  155      *  Date_to_Time()
  156      *  Time_to_Date()
  157      *  Fixed_Window()
  158      *  Moving_Window()
  159      *  ISO_LC()
  160      *  ISO_UC()
  161  +  Added support for Norwegian.
  162  +  Added support for Swedish.
  163  +  Added support for Danish.
  164  +  Added support for Finnish.
  165  +  Changed the month names of some languages to lower case.
  166  +  Changed the french "long" date format to a more popular form.
  167  +  Changed the corresponding test script (t/f012.t) accordingly.
  168  +  Corrected the spanish texts in ./examples/age_in_days_*.
  169  +  Fixed the broken parsing of special ISO-Latin-1 characters
  170     in Date::Calc (replaced <ctype.h> with better solution).
  171  -  Locales wouldn't help here, because "Decode_Language()" must
  172     work with any locale setting. Moreover, setting a language in
  173     Date::Calc would also require to set the proper corresponding
  174     locale in the current environment, which may not be available
  175     on the current system. The new solution works independently
  176     of any locale and with ALL languages (in ISO-Latin-1).
  177  +  Added a patch which should ensure compatibility with VMS
  178     (this should resolve the problem of too long identifiers).
  179  +  Added a missing "#include <stdio.h>" statement in DateCalc.c
  180     (apparently only relevant to very few platforms).
  181  +  Now automatically detects Perl's "PL_na" macro or switches to its
  182     older incarnation (in Calc.xs). Same goes for the "GIMME_V" macro.
  183  +  Changed the function "Add_Delta_YMD()" to have a more intuitive,
  184     consistent and reversible behaviour. This might break existing
  185     code, though. (To get the old behaviour, use the new function
  186     "Add_Delta_YM()" plus "Add_Delta_Days()" thereafter instead.)
  187  +  Changed the corresponding test script (t/f029.t) accordingly.
  188  +  Added an optional boolean parameter "orthodox" to "Calendar()"
  189     for calendars starting with Sunday instead of Monday.
  190  +  Changed the behaviour of the "Decode_Date_*()" set of functions:
  191     if the current year is available on the system, then a "moving
  192     window" strategy is applied to year numbers < 100; otherwise
  193     it defaults to the previous behaviour (see version 4.3 below).
  194  +  Also changed the test scripts t/f016.t, t/f027.t and t/f028.t
  195     accordingly.
  196  +  Changed the "Week_of_Year()" function: In scalar context, it
  197     now returns just the week number. BEWARE, this is a DANGEROUS
  198     feature - see the manual page for why this is so!
  199  +  Fixed the misspelled word "whether" in the documentation.
  200 
  201 Module "Date::Calc::Object":
  202 
  203  +  Added the module Date::Calc::Object, an object-oriented add-on
  204     to Date::Calc with overloaded operators.
  205 
  206 Modules "Date::Calendar[::(Year|Profiles)]":
  207 
  208  +  Added the modules Date::Calendar, Date::Calendar::Year and
  209     Date::Calendar::Profiles, for calculations which need to
  210     take holidays into account (and for generating calendars).
  211 
  212 Module "Carp::Clan":
  213 
  214  +  Added the module Carp::Clan (used by all new Date::* modules).
  215 
  216 All modules:
  217 
  218  +  Now test scripts for Date::Calc and Carp::Clan ("functions") are
  219     in files ./t/f*.t, whereas test scripts of other, object-oriented
  220     modules ("methods") are in files ./t/m*.t.
  221  +  Added new test scripts for all new modules.
  222 
  223 Version 4.3   08.01.2000
  224 
  225  +  Changed the behaviour of the "Decode_Date_*()" set of functions: Year
  226     numbers below 100 are now mapped to 1970 - 2069 (yy < 70 ? 20yy : 19yy).
  227  +  Also changed the test scripts "t/f016.t", "t/f027.t" and "t/f028.t"
  228     accordingly.
  229  +  Added Italian (i.e., the number of supported languages is now 7).
  230  +  Added "English_Ordinal()".
  231  +  Changed "Date_to_Text_Long()": The format now depends on the chosen
  232     language (set up your favourite format(s) in "DateCalc.c"!).
  233  +  Changed test script "t/f012.t" accordingly.
  234  +  Added a few new "recipes" in the "RECIPES" section of the manual page.
  235 
  236 Version 4.2   07.09.1998
  237 
  238  +  Added two casts to (char *) in the call of strncpy in Calc.xs line 857
  239     to silence the two corresponding warnings.
  240  +  Introduced an additional header "Preface" in the POD documentation to
  241     avoid clobbering of the information displayed by CPAN.pm et al.
  242  +  Added the new attributes to "Makefile.PL" for ActiveState's port
  243     of Perl 5.005 to the Win32 platform.
  244 
  245 Version 4.1   08.06.1998
  246 
  247  +  Fixed the bug in "Add_Delta_YMD()" involving month offsets with days at
  248     the end of the month, which caused this function to return invalid dates.
  249 
  250 Version 4.0   12.05.1998
  251 
  252  +  Complete rewrite of the XS file.
  253  +  Extensive rewrite of the C library at the core.
  254  +  Changed the naming conventions for function names from all lower case
  255     to mixed upper- and lower case.
  256  +  Added systematic exception handling.
  257  +  Renamed the package from "Date::DateCalc" to simply "Date::Calc".
  258  +  Renamed the corresponding files as well as the files of the C core.
  259  +  Added a new Perl function "Week_of_Year()" (replacing "week_number()").
  260  +  Changed the Perl function "Week_Number()" to call the C function
  261     "Week_Number()".
  262  +  Added new functions "System_Clock()", "Today()", "Now()" and
  263     "Today_and_Now()".
  264  +  Added "check_business_date()", "Standard_to_Business()" and
  265     "Business_to_Standard()".
  266  +  Ported the functions from "Date::DateCalcLib" from Perl to C.
  267  +  Dropped the module "Date::DateCalcLib".
  268  +  Added multi-language support.
  269  +  Enhanced support for Windows NT/95.
  270  +  Complete rewrite of the demo programs.
  271  +  Complete rewrite of the documentation.
  272  +  Added many new tools (like "upgrade_DC40.pl" and "iso2pc.c").
  273 
  274 Version 3.2   15.06.1997
  275 
  276  +  Added the function "week_of_year()" in the C core because the C function
  277     "week_number()" returns the last week of the previous year or the first
  278     week of the next year in a rather hidden way.
  279  +  The Perl function "week_number()" was not affected by this change.
  280 
  281 Version 3.1   12.06.1997
  282 
  283  +  Added a new function "calendar()" to the "Date::CalcLib" module.
  284  +  Added a demo program in C named "cal.c_" (imitates the UNIX "cal"
  285     command) to demonstrate the use of the C core as a stand-alone library.
  286 
  287 Version 3.0   16.02.1997
  288 
  289  +  Added the "Date::DateCalcLib" module as a library of useful functions
  290     that were contained in the various demo files in previous versions.
  291  +  Modified the demo programs to use this library instead.
  292  +  Changed the conventions for unsuccessful returns: Now an empty list
  293     is returned instead of zeros in all list elements. This makes it
  294     possible to assign the returned list and to check for success in
  295     the same statement.
  296 
  297 Version 2.3   22.11.1996
  298 
  299  +  Fixed a problem with unbalanced "malloc" and "free" calls that
  300     only became apparent in Perl version 5.003: Calling "malloc" in
  301     the C core of my module and "free" in the XS file produced a
  302     "bad free() ignored" warning.
  303  +  Added a function to call "free" in the C core instead.
  304 
  305 Version 2.2   26.05.1996
  306 
  307  +  Bugfix concerning arrays as parameters: Enabling prototypes in
  308     the XS file caused
  309         ($year,$mm,$dd) = first_in_week(week_number($year,$mm,$dd));
  310     to break in the previous version, because "week_number()" passes
  311     an array to "first_in_week()".
  312  +  Therefore, disabled prototypes.
  313 
  314 Version 2.1   26.05.1996
  315 
  316  +  Bugfix: Changed
  317         if ((*ss <= 60) and (*mm <= 60) and (*hh <= 24) and
  318     to
  319         if ((*ss < 60) and (*mm < 60) and (*hh < 24) and
  320  +  Applied minor adjustments in orthography and style.
  321  +  Made the necessary adaptations to conform with the new Perl 5.002
  322     module standards (mainly concerning $VERSION and prototypes).
  323  +  The man page is no separate file anymore, it is now included in the
  324     file "DateCalc.pm" in POD format, where it will automatically be found
  325     and installed in your "man" directory by "make install".
  326 
  327 Version 2.0   25.05.1996
  328 
  329  +  Added functions "date_time_difference()" and "calc_new_date_time()"
  330     for date/time calculations (plus some other new functions).
  331  +  The german man page was dropped because it became too costly (i.e.,
  332     time consuming) to maintain two man pages.
  333  +  Dropped the functions "day_short_tab()" and "month_short_tab()",
  334     because they can be derived from the corresponding full text variants.
  335  +  Renamed the functions "encode()", "decode()", "valid_date()" and
  336     "date_string()" to "compress()", "uncompress()", "check_compressed()"
  337     and "compressed_to_short()", respectively, for more consistency.
  338  +  Modified the function "day_of_week()" to return 1..7 instead of
  339     0..6 (in order to make the functions "decode_day()" and
  340     "decode_month()" work the same way).
  341  +  Changed the function and table "day_name_tab()" accordingly.
  342  +  Exported the functions "decode_day()" and "decode_month()",
  343     which were purely for internal use in previous versions.
  344  +  Added a utility named "parse_date.pl" to parse the output
  345     of "/bin/date".
  346 
  347 Version 1.6   20.04.1996
  348 
  349  +  Tested with Perl 5.002 for compatibility (successfully).
  350  +  Added another demo program which shows how to calculate, for instance,
  351     the 2nd Thursday of a given month and year.
  352     This version was never published.
  353 
  354 Version 1.5   14.03.1996
  355 
  356  +  Added a prominent notice that you need an ANSI C compiler in order
  357     to successfully install this package, because of too many problem
  358     reports of this kind from users.
  359  +  Added a second demo program for decoding dates in U.S. american format.
  360 
  361 Version 1.4   11.02.1996
  362 
  363  +  Bugfix: The function newSVnv(double) was previously used in the XS file
  364     to create a new SV with an integer value passed to it. Fixed this to use
  365     newSViv(IV) instead.
  366 
  367 Version 1.3   10.12.1995
  368 
  369  +  The C library "lib_date.c" is compiled separately now,
  370     it is no longer "#include"d in the XS file.
  371  +  Added the function "days_in_month()".
  372 
  373 Version 1.2b  27.11.1995
  374 
  375  +  Fixed EXTEND(SP,num) back into EXTEND(sp,num).
  376  +  Marginal refinements of the documentation.
  377  +  The fix for type name clashes of previous version apparently succeeded.
  378 
  379 Version 1.2a  21.11.1995
  380 
  381  +  Another attempt at fixing the problem of type name clashes.
  382  +  Erroneously "fixed" EXTEND(sp,num) into EXTEND(SP,num).
  383 
  384 Version 1.1   18.11.1995
  385 
  386  +  Added test scripts for "make test".
  387  +  Attempt at fixing the problem of type name clashes
  388     (changed "uint", "ulong" etc. to "unint", "unlong" etc.).
  389 
  390 Version 1.01  16.11.1995
  391 
  392  +  Made the necessary changes so as to comply with programming standards
  393     required for Perl modules.
  394 
  395 Version 1.0   14.11.1995   First version under UNIX (with Perl module)
  396 
  397  +  Released as an article in the newsgroups comp.lang.perl.misc and
  398     de.comp.lang.perl.
  399 
  400 Version 0.9   01.11.1993   First version of C library under MS-DOS
  401 
  402  +  I wrote this library in my spare time because the company I was working
  403     for at that time could have needed it: Instead of storing some values for
  404     the last 60 days in an array and the dates of the corresponding days in
  405     another array, my library would have permitted to economize the second
  406     array, calculating the corresponding date from the index of the first
  407     array and the current date.
  408 
  409 ----------------------------------------------------------------------------
  410