Commit Graph

79 Commits

Author SHA1 Message Date
Paul Howarth
8d16d82736 Update to 1.54
- New upstream release 1.54
  - Documentation updates
2020-12-05 16:49:46 +00:00
Paul Howarth
34e8696668 Update to 1.53
- New upstream release 1.53
  - Added a $dt->rfc3339 method, based on discussion in GH#109
2020-11-09 11:29:24 +00:00
Paul Howarth
206f08489b Update to 1.51
- New upstream release 1.51
  - Added a $dt->is_between($dt1, $dt2) method (based on GH#97)
  - Simplify the calculation of leap seconds in XS (GH#91); this is a little
    more efficient for most use cases (anything with future or recent past
    datetimes)
2020-03-02 12:21:18 +00:00
Paul Howarth
370e7086cf Update to 1.51
- New upstream release 1.51
  - Fix CLDR formatting of 'S' pattern with more than 9 digits of precision;
    while we only store nanoseconds in the DateTime object we should still be
    able to handle an arbitrary number of digits properly (GH#89)
- Modernize spec using %{make_build} and %{make_install}
2019-04-22 13:21:47 +01:00
Paul Howarth
34ea920f48 Update to 1.50
- New upstream release 1.50
  - The %F strftime pattern incorrectly zero-padded numbers less than four
    digits; according to POSIX::strftime, this should output the year as-is
    without padding (GH#83)
2018-08-02 10:16:33 +01:00
Paul Howarth
048eef353b Update to 1.49
- New upstream release 1.49
  - Updated the ppport.h with the latest version of Devel::PPPort, which fixes
    a compilation warning when compiling with 5.27.11 (GH#81)
- Switch upstream from search.cpan.org to metacpan.org
2018-05-21 11:47:22 +01:00
Paul Howarth
430b9793f9 Update to 1.48
- New upstream release 1.48
  - The last release would die if Sub::Util was not available, but this should
    just be an optional requirement (GH#77, GH#78)
2018-03-26 18:59:54 +01:00
Paul Howarth
abbb4713a7 Update to 1.47
- New upstream release 1.47
  - DateTime::Duration->multiply now only allows integer multipliers (GH#73)
  - Added is_last_day_of_quarter() and is_last_day_of_year() methods (GH#72)
  - When an exception was thrown while adding a duration, the object could be
    left in a broken state with the duration partially applied; subsequent
    addition or subtraction would produce the wrong results (GH#74)
- Add patch to support use without Sub::Util (GH#77, GH#78)
2018-03-26 12:31:22 +01:00
Paul Howarth
65d29e9f85 Update to 1.46
- New upstream release 1.46
  - Fixed the formatting for the CLDR "S" symbol, which in some cases would
    round up to 1 instead of truncating a value, e.g. the "SSS" symbol would
    format 999,999,999 nanoseconds as "1.000" (GH#71)
2018-02-12 10:50:37 +00:00
Paul Howarth
9bf96abebe Update to 1.45
- New upstream release 1.45
  - Added month_length(), quarter_length() and year_length() methods (GH#70)
2017-12-31 18:14:25 +00:00
Paul Howarth
f164fe190f Update to 1.44
- New upstream release 1.44
  - Added a stringify() method, which does exactly the same thing as
    stringification overloading does (GH#58)
  - Added an is_last_day_of_month() method to indicate whether or not an object
    falls on the last day of its month (GH#60)
2017-08-22 16:19:39 +01:00
Paul Howarth
d680a9b413 Update to 1.43
- New upstream release 1.43
  - Added a small optimization for boolification overloading: rather than
    relying on a fallback to stringification, we now return true directly,
    which is a little faster in cases like "if ($might_be_dt) { ... }"
  - The datetime() method now accepts a single argument to use as the separator
    between the date and time portion; this defaults to "T"
- Drop redundant Group: tag
2017-05-30 11:28:08 +01:00
Paul Howarth
30329255a7 Update to 1.42
- New upstream release 1.42
  - The DateTime::Duration->add and ->subtract methods now accept
    DateTime::Duration objects; this used to work by accident but is now done
    intentionallay, with docs and tests (GH#50)
2016-12-26 17:21:44 +00:00
Paul Howarth
991509ebab Update to 1.41
- New upstream release 1.41
  - The DateTime->add and ->subtract methods now accept DateTime::Duration
    objects; this used to work by accident but is now done intentionally, with
    docs and tests (GH#45)
2016-11-17 11:00:42 +00:00
Paul Howarth
349a3257ce Update to 1.40
- New upstream release 1.40
  - Switched from RT to the GitHub issue tracker
2016-11-13 20:24:16 +00:00
Paul Howarth
6e2e376782 Update to 1.39
- New upstream release 1.39
  - Replaced Params::Validate with Params::ValidationCompiler and Specio
    - In my benchmarks this makes constructing a new DateTime object about 14%%
      faster
    - However, it slows down module load time by about 100 milliseconds (1/10
      of a second) on my desktop system with a primed cache (so really
      measuring compile time, not disk load time)
  - When you pass a locale to $dt->set you will now get a warning suggesting
    you should use $dt->set_locale instead (CPAN RT#115420)
  - Bump minimum required Perl to 5.8.4 from 5.8.1
- Use NO_PERLLOCAL=1 so we can use "make install"
2016-09-19 16:01:50 +01:00
Paul Howarth
f8e49f6a94 Update to 1.36
- New upstream release 1.36
  - Require namespace::autoclean 0.19
2016-08-07 15:33:27 +01:00
Paul Howarth
fd8c4d5e01 Update to 1.35
- New upstream release 1.35
  - Use namespace::autoclean in all packages that import anything; without
    cleaning the namespace, DateTime ends up with "methods" like try and catch
    (from Try::Tiny), which can lead to very confusing bugs (CPAN RT#115983)
2016-08-06 17:34:59 +01:00
Paul Howarth
5e985597ae Update to 1.34
- New upstream release 1.34
  - Added the leap second coming on December 31, 2016
2016-07-06 16:30:41 +01:00
Paul Howarth
63188e3731 Update to 1.33
- New upstream release 1.33
  - When you pass a locale to $dt->set you will now get a warning suggesting
    you should use $dt->set_locale instead (CPAN RT#115420)
  - Added support for $dt->truncate( to => 'quarter' ) (GH#17)
  - Fixed the $dt->set docs to say that you cannot pass a locale (even though
    you can but you'll get a warning) and added more docs for $dt->set_locale
  - Require DateTime::Locale 1.05
  - Require DateTime::TimeZone 2.00
- Take advantage of NO_PACKLIST option in recent EU:MM
2016-06-29 10:19:38 +01:00
Paul Howarth
f89d0f05ff Update to 1.28
- New upstream release 1.28
  - Fixed handling of some floating point epochs; since DateTime treated the
    epoch like a string instead of a number, certain epochs with a non-integer
    value ended up treated like integers (Perl is weird) (GH#15, fixes GH#6)
2016-05-22 12:33:45 +01:00
Paul Howarth
83963112d3 Update to 1.27
- New upstream release 1.27
  - Added an environment variable PERL_DATETIME_DEFAULT_TZ to globally set the
    default time zone (GH#14); using this is very dangerous - be careful!
- BR: perl-generators
2016-05-14 21:28:57 +01:00
Paul Howarth
1d8cf864e8 Update to 1.26
- New upstream release 1.26
  - Switched from Module::Build to ExtUtils::MakeMaker (GH#13)
2016-03-22 10:42:37 +00:00
Paul Howarth
5188a602d0 Update to 1.25
- New upstream release 1.25
  - DateTime->from_object would die if given a DateTime::Infinite object; now
    it returns another DateTime::Infinite object (CPAN RT#112712)
- Simplify find command using -empty and -delete
2016-03-07 09:10:04 +00:00
Paul Howarth
b7c39171ed Update to 1.24
- New upstream release 1.24
  - The last release partially broke $dt->time; if you passed a value to use
    as unit separator, it was ignored (CPAN RT#112585)
2016-03-01 11:45:50 +00:00
Paul Howarth
c32842e255 Update to 1.23
- New upstream release 1.23
  - Fixed several issues with the handling of non-integer values passed to
    from_epoch() (GH#11)
    - This method was simply broken for negative values, which would end up
      being incremented by a full second, so for example -0.5 became 0.5
    - The method did not accept all valid float values; specifically, it did
      not accept values in scientific notation
    - Finally, this method now rounds all non-integer values to the nearest
      millisecond, which matches the precision we can expect from Perl itself
      (53 bits) in most cases
  - Make all DateTime::Infinite objects return the system's representation of
    positive or negative infinity for any method that returns a number or
    string representation (year(), month(), ymd(), iso8601(), etc.); previously
    some of these methods could return "Nan", "-Inf--Inf--Inf", and other
    confusing outputs (CPAN RT#110341)
2016-02-29 14:47:17 +00:00
Paul Howarth
69df12bb3a Update to 1.21
- New upstream release 1.21
  - Make all tests pass with the current DateTime::Locale
- Explicitly BR: perl-devel, needed for EXTERN.h
2015-11-13 10:50:57 +00:00
Petr Písař
bc2ddc8edf 1.20 bump 2015-07-24 14:00:24 +02:00
Paul Howarth
72cfd915fe 1.18 bump 2015-01-06 11:18:09 +00:00
Paul Howarth
e4d96f3cb2 1.17 bump
- New upstream release 1.17
- Use %license
- Make %files list more explicit
2015-01-05 15:51:05 +00:00
Paul Howarth
b430fd2c3d 1.14 bump 2015-01-05 09:39:34 +00:00
Petr Písař
83badaa6a5 1.12 bump 2014-09-02 13:52:11 +02:00
Petr Písař
f7445b0290 1.10 bump 2014-05-07 08:59:39 +02:00
Paul Howarth
8f63f18dde 1.08 bump 2014-03-14 15:52:37 +00:00
Paul Howarth
01d4fec0de 1.07 bump 2014-02-10 10:13:30 +00:00
Petr Písař
4d6340b3db 1.06 bump 2014-01-03 08:57:24 +01:00
Petr Písař
28b99ffc7f 1.04 bump 2013-12-10 08:06:25 +01:00
Jitka Plesnikova
e16055f9ff 1.03 bump 2013-06-25 15:19:26 +02:00
Petr Šabata
619c758685 1.01 bump 2013-04-02 09:18:44 +02:00
Petr Písař
519fa2c267 0.78 bump 2012-11-19 09:50:45 +01:00
Petr Písař
50167b2ccf 0.77 bump 2012-10-18 11:58:30 +02:00
Iain Arnell
8baa9ed248 Unbundle DateTime::TimeZone and DateTime::Locale (rhbz#730658)
- Bump epoch and revert to upstream versioning
- Specfile regenerated by cpanspec 1.78.
- Update description
2011-08-18 17:19:00 +02:00
Iain Arnell
7c7919cf2d update DateTime::TimeZone to 1.35 (Olson 2011h) 2011-07-04 06:26:59 +02:00
Iain Arnell
0fa4a86559 update DateTime to 0.70 2011-05-13 16:10:02 +02:00
Iain Arnell
ad522a1d4f update DateTime::TimeZone to 1.34 (Olson 2011g) 2011-05-04 16:49:19 +02:00
Iain Arnell
325cd23901 update DateTime to 0.69 2011-05-04 16:49:11 +02:00
Iain Arnell
b1ab4d26d2 update DateTime::TimeZone to 1.33 (Olson 2011f) 2011-04-24 11:15:03 +02:00
Iain Arnell
e572d21834 update DateTime::Timezone to 1.32 2011-04-06 06:34:19 +02:00
Iain Arnell
99293d3a17 update DateTime::TimeZone to 1.31
DateTime::TimeZone no longer has Build.PL; use Makefile.PL
whitespace cleanup
2011-03-26 10:45:32 +01:00
Steven Pritchard
e6a81aa80c Update DateTime to 0.66.
Update DateTime::TimeZone to 1.26.
Update URL for FAQ in description.
BR Class::Load and parent.
2010-12-21 11:32:08 -06:00