| SPOPSx-Tool-DateTime documentation | view source | Contained in the SPOPSx-Tool-DateTime distribution. |
SPOPSx::Tool::DateTime - SPOPS extension for arbitrarily formatted DateTime fields
%conf = (
table_alias => {
# ...
datetime_format => {
atime => 'DateTime::Format::MySQL',
mtime => 'DateTime::Format::Baby',
ctime => DateTime::Format::Strptime->new(pattern => '%D %T'),
},
# ...
}
);
This module allows for DateTime objects to be stored to and loaded from a database field. This module differs from the SPOPS::Tool::DateConvert tool that is distributed with SPOPS in that it allows for the use of arbitrary DateTime format objects. (See http://datetime.perl.org/ for details on DateTime and formatting.)
Typical:
perl Build.PL ./Build ./Build test ./Build install
or:
perl Makefile.PL make make test make install
Andrew Sterling Hanenkamp, <hanenkamp@users.sourceforge.net>
Copyright 2005 Andrew Sterling Hanenkamp. All Rights Reserved.
This library is distributed and licensed under the same terms as Perl itself.
| SPOPSx-Tool-DateTime documentation | view source | Contained in the SPOPSx-Tool-DateTime distribution. |