Rose::HTML::Form::Field::Time::Minutes - Text field that only accepts valid minutes.
$field = Rose::HTML::Form::Field::Time::Minutes->new( label => 'Minutes', name => 'mins'); $field->input_value(99); $field->validate; # 0 $field->input_value(20); $field->validate; # 1 print $field->html; ...
Rose::HTML::Form::Field::Time::Minutes is a subclass of Rose::HTML::Form::Field::Text that only accepts valid minutes: numbers between 0 and 59, inclusive, with or without leading zeros.
John C. Siracusa (siracusa@gmail.com)
Copyright (c) 2010 by John C. Siracusa. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Rose::HTML::Objects, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Rose::HTML::Objects
CPAN shell
perl -MCPAN -e shell install Rose::HTML::Objects
For more information on module installation, please visit the detailed CPAN module installation guide.