HTML::FormHandler::Field::Duration - DateTime::Duration from HTML form values
years, months, weeks, days, hours, minutes, seconds, nanoseconds
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]')
FormHandler Contributors - see HTML::FormHandler
This software is copyright (c) 2012 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.