"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/Date/Calendar.pod" between
Date-Calc-6.3.tar.gz and Date-Calc-6.4.tar.gz

About: Date-Calc - Gregorian calendar date calculations (C library and Perl module).

Calendar.pod  (Date-Calc-6.3):Calendar.pod  (Date-Calc-6.4)
skipping to change at line 401 skipping to change at line 401
Note that an exception ("invalid date") is raised if the Note that an exception ("invalid date") is raised if the
given date argument does not constitute a valid date. given date argument does not constitute a valid date.
In scalar context, the method just returns the resulting date In scalar context, the method just returns the resulting date
object, whereas in list context the method not only returns the object, whereas in list context the method not only returns the
new date, but also a "rest". This rest is useful for cases in new date, but also a "rest". This rest is useful for cases in
which your profile contains "half" holidays, or when you add which your profile contains "half" holidays, or when you add
or subtract fractions of a day. or subtract fractions of a day.
Sometimes it is not possible to accomodate the requested number Sometimes it is not possible to accommodate the requested number
of work days, and a rest remains. of work days, and a rest remains.
This rest can currently only assume the value "0.0" (zero), This rest can currently only assume the value "0.0" (zero),
"-0.5" (minus one half) or "0.5" (one half), provided you "-0.5" (minus one half) or "0.5" (one half), provided you
use only integral or multiples of 0.5 as offsets. A rest use only integral or multiples of 0.5 as offsets. A rest
of zero indicates that the calculation yielded an exact of zero indicates that the calculation yielded an exact
result. If the rest is 0.5 or -0.5, this is to be interpreted result. If the rest is 0.5 or -0.5, this is to be interpreted
as "the resulting date at 12:00 o'clock", instead of as "the as "the resulting date at 12:00 o'clock", instead of as "the
resulting date at 0:00 o'clock". resulting date at 0:00 o'clock".
skipping to change at line 579 skipping to change at line 579
The method "add_delta_workdays()" is known to produce results The method "add_delta_workdays()" is known to produce results
which are sometimes off by one working day when a negative which are sometimes off by one working day when a negative
offset is used. As a workaround, try to add one working day offset is used. As a workaround, try to add one working day
first and then subtract one working day more than initially first and then subtract one working day more than initially
intended. See also the file "examples/bug.pl" for how to do intended. See also the file "examples/bug.pl" for how to do
this. this.
=head1 VERSION =head1 VERSION
This man page documents "Date::Calendar" version 6.3. This man page documents "Date::Calendar" version 6.4.
=head1 AUTHOR =head1 AUTHOR
Steffen Beyer Steffen Beyer
mailto:STBEY@cpan.org mailto:STBEY@cpan.org
http://www.engelschall.com/u/sb/download/ http://www.engelschall.com/u/sb/download/
=head1 COPYRIGHT =head1 COPYRIGHT
Copyright (c) 2000 - 2009 by Steffen Beyer. All rights reserved. Copyright (c) 2000 - 2015 by Steffen Beyer. All rights reserved.
=head1 LICENSE =head1 LICENSE
This package is free software; you can use, modify and redistribute 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 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 the terms either of the "Artistic License" or the "GNU General Public
License". License".
The C library at the core of the module "Date::Calc::XS" can, at your 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 discretion, also be used, modified and redistributed under the terms
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS