./time/p5-DateTime-Format-Strptime, Perl 5 module to parse and format strp and strf time patterns

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 1.7000, Package name: p5-DateTime-Format-Strptime-1.7000, Maintainer: abs

This module implements most of strptime(3), the POSIX function that
is the reverse of strftime(3), for DateTime. While strftime takes
a DateTime and a pattern and returns a string, strptime takes a
string and a pattern and returns the DateTime object associated.


Required to run:
[lang/perl5] [time/p5-DateTime] [time/p5-DateTime-Locale] [time/p5-DateTime-TimeZone] [devel/p5-Params-Validate] [devel/p5-Package-DeprecationManager]

Required to build:
[devel/p5-Sub-Name] [devel/p5-Package-Stash] [devel/p5-Test-Warnings] [pkgtools/cwrappers]

Master sites: (Expand)

SHA1: e52ba2e1c27ec148cacd6f8a052ae11997416668
RMD160: 333940ec1ee24bcc877c31fc93df4c00014ce1da
Filesize: 102.988 KB

Version history: (Expand)


CVS history: (Expand)


   2017-01-07 07:20:58 by Wen Heping | Files touched by this commit (2) | Package updated
Log message:
Update to 1.70

Upstream changes:
1.70     2016-12-10

- Altered the conversion specifier %z to accept 簣HH, 簣HHMM, 簣HH:MM and Z.
  Previously only 簣HHMM where accepted. PR from Christian Hansen, GitHub #13.

1.69     2016-12-04 (TRIAL RELEASE)

- The word boundary check supposedly added in 1.67 didn't really work
  properly, and still matched too much. For example, the pattern "%d-%m-%y"
  would match "2016-11-30" and turn it into November 16, 2030. This \ 
also had
  problems at the end of strings, so that the same pattern would improperly
  match "30-11-2016" as November 30, 2020. Reported by Erik Huelsmann. \ 
GitHub
  #11.

- Added docs for several formats which had long been supported but not
  documented. These are %P, %c, %x, and %X. Reported by Alexander
  Hartmaier. GH #10.
   2016-07-26 02:29:57 by Wen Heping | Files touched by this commit (2) | Package updated
Log message:
Update to 1.68

Upstream changes:
1.68     2016-05-08

- Author tests are no longer in t/. This makes running tests for non-authors
  much faster. Requested by Kent Fredric. RT #114237.
   2016-06-08 21:25:20 by Thomas Klausner | Files touched by this commit (2236) | Package updated
Log message:
Bump PKGREVISION for perl-5.24.
   2016-06-07 23:10:32 by Makoto Fujiwara | Files touched by this commit (1)
Log message:
Add BUILD_DEPENDS+= p5-Sub-Name-[0-9]* for make test
   2016-05-07 07:21:05 by Wen Heping | Files touched by this commit (2) | Package updated
Log message:
Update to 1.6700

Upstream changes:
1.67     2016-03-31

- Fixed a regression introduced in 1.60. Older versions of this library would
  match dates pretty match anywhere in a string, so "%Y-%m-%d" would \ 
match a
  string like "abcd1234-12-30efgh". This is probably _too_ permissive, \ 
but we
  definitely want to match on word boundaries so that we match
  "log.2016-03-31". Based on a PR from YASUTAKE Kiyoshi. GitHub #3.

1.66     2016-03-27

- Added a zone_map constructor argument. This lets you supply a mapping for
  ambiguous time zone abbreviations. Based on a patch from Douglas Wilson. RT
  #74762.

1.65     2016-03-15

- Updated zone short name parsing to handle names like "+07", which were
  introduced in the latest IANA time zone database release.
   2016-02-27 08:54:34 by Wen Heping | Files touched by this commit (2) | Package updated
Log message:
Update to 1.64

Upstream changes:
1.64     2016-02-21

- Changed how a string that contains separate epoch and nanosecond fields is
  turned into a DateTime object in order to deal with changes coming in the
  next DateTime release.

1.63     2016-01-13

[BUG FIXES]

- The behaviour of silently ignoring text after the matching part was
  lost in the rewrite. This has been restored. Patch by Dagfinn Ilmari
  Manns疇ker. RT #111155.

1.62     2015-12-19

[BUG FIXES]

- When on_error was set to something that did not die (including the default
  error handling), calling ->parse_datetime with some bad inputs could cause
  the module to error out internally by trying to call methods on an undefined
  value instead of returning undef. Reported by Mike Dorman. RT #110247.
   2016-01-30 11:01:02 by Makoto Fujiwara | Files touched by this commit (1)
Log message:
Add two lines for make test
  BUILD_DEPENDS+=  p5-Package-Stash-[0-9]*:../../devel/p5-Package-Stash
  BUILD_DEPENDS+=  p5-Test-Warnings-[0-9]*:../../devel/p5-Test-Warnings
   2015-11-15 06:11:52 by Wen Heping | Files touched by this commit (2) | Package updated
Log message:
Update to 1.61
Update DEPENDS

Upstream changes:
1.61     2015-11-13

[BUG FIXES]

- If you loaded this module with warnings globally enabled ("perl -w", \ 
which
  you should never do), then you'd get a warning about the import subroutine
  being redefined. This broke the Package::DeprecationManager API for turning
  off deprecation warnings. This has been fixed in
  Package::DeprecationManager 0.15. Reported by Martin. RT #108871.

1.60     2015-11-07

- This release is identical to the prior trial release. The changes for the
  trial releases are reproduced below for convenience.

[BACKWARDS INCOMPATIBILITIES]

- The error messages for various types of failures have changed.

- The never-documented diagnostic parameter for the constructor has been
  removed.

- The never-documented feature to allow you to use arbitrary DateTime.pm
  methods in the parsing pattern has been removed. This never made much sense
  anyway, since most DateTime.pm methods are not constructor params, but they
  were used that way.

- Using the pattern, locale, and time_zone to set the respective attribute is
  now deprecated. Make a new object instead of changing one of these values.

[BUG FIXES]

- Fixed a warning from the tests with newer Perl versions. RT #107620.

- Clarified docs to note that %Y and %G require 4-digit years. Reported by
  Karen Etheridge. RT #103147.

- Using the 24-hour token (%H) with an AM/PM specifier (%p) now leads to an
  error if you try to parse something like "23:01 AM". Reported by Ric
  Signes. RT #92445.

1.59     2015-10-25 (TRIAL RELEASE)

- The previous release accidentally included an old version of Strptime.pm in
  the root dir, causing all sorts of chaos and test failures.

1.58     2015-10-18 (TRIAL RELEASE)

- This release is a substantial rewrite. Please test it and file bugs for any
  unintentional breakage.

* The error messages for various types of failures have changed.

* The never-documented diagnostic parameter for the constructor has been
  removed.

* The never-documented feature to allow you to use arbitrary DateTime.pm
  methods in the parsing pattern has been removed. This never made much sense
  anyway, since most DateTime.pm methods are not constructor params, but they
  were used that way.

* Using the pattern, locale, and time_zone to set the respective attribute is
  now deprecated. Make a new object instead of changing one of these values.

- Fixed a warning from the tests with newer Perl versions. RT #107620.

- Clarified docs to note that %Y and %G require 4-digit years. Reported by
  Karen Etheridge. RT #103147.

1.57     2015-10-04

- Make all tests pass with both the current DateTime::Locale and the upcoming
  new version (currently still in trial releases).