| 1 |
Regexp::Common::time v0.09 |
| 2 |
========================== |
| 3 |
|
| 4 |
This is a Regexp::Common plugin that provides regular expressions for |
| 5 |
parsing dates and times. It can handle most date formats, such as: |
| 6 |
|
| 7 |
y/m/d m/d/y d/m/y |
| 8 |
2005/04/02 4/2/2005 2/4/05 |
| 9 |
05.04.02 04.02.05 02.04.2005 |
| 10 |
2005 April 2 April 2, 2005 2 APR 05 |
| 11 |
05APRIL02 APR022005 02 April 2005 |
| 12 |
20050402 040205 02042005 |
| 13 |
|
| 14 |
ISO 8601 RFC 2822 |
| 15 |
2008-05-24T21:46:01 25 May 2008 21:46:01 +0500 |
| 16 |
|
| 17 |
|
| 18 |
It can also handle time formats like: |
| 19 |
|
| 20 |
9:03:27pm |
| 21 |
21:03:27 |
| 22 |
9:03 p.m. |
| 23 |
21:03 |
| 24 |
9:03a |
| 25 |
|
| 26 |
Furthermore, you can easily piece together time and date component |
| 27 |
patterns (in the style of Time::Format or POSIX's strftime) to build |
| 28 |
arbitrarily complex custom regexes that can parse just about any time |
| 29 |
or date pattern imaginable. |
| 30 |
|
| 31 |
|
| 32 |
INSTALLATION |
| 33 |
|
| 34 |
To install this module type the following: |
| 35 |
|
| 36 |
perl Makefile.PL |
| 37 |
make |
| 38 |
make test |
| 39 |
make install |
| 40 |
|
| 41 |
On Windows, you will need to use nmake instead of make. |
| 42 |
|
| 43 |
|
| 44 |
DEPENDENCIES |
| 45 |
|
| 46 |
This module requires this other modules and libraries: |
| 47 |
|
| 48 |
Regexp::Common |
| 49 |
POSIX (optional) |
| 50 |
I18N::Langinfo (optional, but needed for internationalization) |
| 51 |
|
| 52 |
Also, Time::Normalize is likely to be useful to you. |
| 53 |
|
| 54 |
|
| 55 |
COPYRIGHT AND LICENSE |
| 56 |
|
| 57 |
Eric J. Roode, roode @ cpan . org |
| 58 |
|
| 59 |
Copyright (c) 2005-2008 by Eric J. Roode. All Rights Reserved. |
| 60 |
This module is free software; See the copyright notice in the |
| 61 |
module source code for full details. |
| 62 |
|
| 63 |
To avoid my spam filter, please include "Perl", "module", or this |
| 64 |
module's name in the message's subject line, and/or GPG-sign your |
| 65 |
message. |