The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

SPOPSx::Tool::DateTime - A SPOPS extension allowing DateTime fields to be stored

SYNOPSIS

  %conf = (
      table_alias => {
          # ...
          datetime_format => {
              atime => 'DateTime::Format::MySQL',
              mtime => 'DateTime::Format::Baby',
              ctime => DateTime::Format::Strptime->new(pattern => '%D %T'),
          },
          # ...
      }
  );

DESCRIPTION

NOTE: This module is currently distributed with Contentment, but will probably be forked into its own module eventually.

This module allows for DateTime objects to be stored to and loaded from a database field.

SEE ALSO

SPOPS, DateTime, http://datetime.perl.org/

AUTHOR

Andrew Sterling Hanenkamp, <hanenkamp@users.sourceforge.net>

COPYRIGHT AND LICENSE

Copyright 2005 Andrew Sterling Hanenkamp. All Rights Reserved.

Contentment is distributed and licensed under the same terms as Perl itself.