Name : perl-Regexp-Common-time
| |
Version : 0.16
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp155.1.1
| Date : 2023-07-20 16:56:02
|
Group : Development/Libraries/Perl
| Source RPM : perl-Regexp-Common-time-0.16-lp155.1.1.src.rpm
|
Size : 0.05 MB
| |
Packager : https://www_suse_com/
| |
Summary : Date and time regexps
|
Description :
This module creates regular expressions that can be used for parsing dates and times. See Regexp::Common for a general description of how to use this interface.
Parsing dates is a dirty business. Dates are generally specified in one of three possible orders: year/month/day, month/day/year, or day/month/year. Years can be specified with four digits or with two digits (with assumptions made about the century). Months can be specified as one digit, two digits, as a spelled-out name, or as a three-letter abbreviation. Day numbers can be one digit or two digits, with limits depending on the month (and, in the case of February, even the year). Also, different people use different punctuation for separating the various elements.
A human can easily recognize that \"October 21, 2005\" and \"21.10.05\" refer to the same date, but it\'s tricky to get a program to come to the same conclusion. This module attempts to make it possible to do so, with a minimum of difficulty.
* If you know the exact format of the data to be matched, use one of the specific, piecemeal pattern builders: \'tf\' or \'strftime\'.
* If you are parsing RFC-2822 mail headers, use the \'mail\' pattern.
* If you are parsing informal American dates, use the \'american\' pattern.
* If there is some variability in your input data, use one of the fuzzy-matching patterns in the \'dmy\', \'mdy\', or \'ymd\' families.
* If the data are wildly variable, such as raw user input, you should probably give up and use Date::Manip or Date::Parse.
Time values are generally much simpler to parse than date values. Only one fuzzy pattern is provided, and it should suffice for most needs.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-R/15.5/noarch |