NAME

DBIx::Meld::Traits::DateTimeFormat - Melds DateTime::Format::* with DBIx::Meld.

DESCRIPTION

This trait provides access to the correct DateTime::Format:: module for whatever kind of database you are connecting to.

METHODS

datetime_formatter

my $formatter = $meld->datetime_formatter();
print $formatter->format_date( DateTime->now() );

This returns the DateTime::Format::* class that is appropriate for your database connection.

format_datetime

print $meld->format_datetime( DateTime->now() );

Returns the date and time in the DB's format.

format_date

print $meld->format_date( DateTime->now() );

Returns the date in the DB's format.

format_time

print $meld->format_time( DateTime->now() );

Returns the time in the DB's format.

AUTHOR

Aran Clary Deltac <bluefeet@gmail.com>

LICENSE

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