NAME

DBIx::QuickORM::Type::DateTime - Lazy DateTime inflate/deflate type.

DESCRIPTION

A DBIx::QuickORM::Role::Type implementation for date/time columns. The inflated value is a DBIx::QuickORM::Util::Mask wrapping a DateTime: the DateTime is not built until the value is actually used (a method call, etc.), so reading and re-storing a column you never inspect costs nothing.

Stringification always returns the original database string - it never builds the DateTime - so printing a value is cheap and predictable.

The affinity is string, and the parse/format comes from the dialect (datetime_formatter).

SOURCE

The source code repository for DBIx::QuickORM can be found at https://github.com/exodist/DBIx-QuickORM.

MAINTAINERS

Chad Granum <exodist@cpan.org>

AUTHORS

Chad Granum <exodist@cpan.org>

COPYRIGHT

Copyright Chad Granum <exodist7@gmail.com>.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See https://dev.perl.org/licenses/