The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

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

SubFields

Subfield names:

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

For example:

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