Shawn M Moore > Jifty-DBI-0.69 > Jifty::DBI::Filter::Duration

Download:
Jifty-DBI-0.69.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  2
Open  0
Stalled  1
View/Report Bugs
Source   Latest Release: Jifty-DBI-0.77

NAME ^

Jifty::DBI::Filter::Duration - Encodes time durations

DESCRIPTION ^

encode

If value is defined, then encode it using "parse_duration" in Time::Duration::Parse, otherwise do nothing. If the value can't be parsed, then set it to undef.

decode

If value is defined, then decode it using "duration_exact" in Time::Duration and "concise" in Time::Duration, otherwise do nothing.

SEE ALSO ^

Jifty::DBI::Filter, Time::Duration, Time::Duration::Parse

syntax highlighting: