Gerda Shank > HTML-FormHandler-0.40019 > HTML::FormHandler::Field::Duration

Download:
HTML-FormHandler-0.40019.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  1
View/Report Bugs
Module Version: 0.01   Source   Latest Release: HTML-FormHandler-0.40057

NAME ^

HTML::FormHandler::Field::Duration - DateTime::Duration from HTML form values

VERSION ^

version 0.40019

SubFields ^

Subfield names:

  years, months, weeks, days, hours, minutes, seconds, nanoseconds

For example:

   has 'duration' => ( type => 'Duration' );
   has 'duration.hours' => ( type => 'Int', range_start => 0,
        range_end => 23 );
   has 'duration.minutes' => ( type => 'Int', range_start => 0,
        range_end => 59 );

Customize error message 'duration_invalid' (default 'Invalid value for [_1]: [_2]')

AUTHOR ^

FormHandler Contributors - see HTML::FormHandler

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2013 by Gerda Shank.

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

syntax highlighting: