FormHandler/Field/DateMDY.pm

filter: Statementstmt 100% 11 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 13 / 13 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« FormHandler/Test.pm ↑ Summary FormHandler/Field/File.pm »
1 package HTML::FormHandler::Field::DateMDY;
2 # ABSTRACT: m/d/y date field
3 1 $HTML::FormHandler::Field::DateMDY::VERSION = '0.410000';
4 1 ▶use HTML::FormHandler::Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 extends 'HTML::FormHandler::Field::Date';
6  
7 1 has '+format' => ( default => '%m/%d/%Y' );
8  
9  
10 1 __PACKAGE__->meta->make_immutable;
11 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 1;
13  
14 __END__
15  
16 =pod
17  
18 =encoding UTF-8
19  
20 =head1 NAME
21  
22 HTML::FormHandler::Field::DateMDY - m/d/y date field
23  
24 =head1 VERSION
25  
26 version 0.410000
27  
28 =head1 SYNOPSIS
29  
30 For date fields in the format nn/nn/nnnn. This simply inherits
31 from L<HTML::FormHandler::Field::Date> and sets the format
32 to "%m/%d/%Y".
33  
34 =head1 AUTHOR
35  
36 FormHandler Contributors - see HTML::FormHandler
37  
38 =head1 COPYRIGHT AND LICENSE
39  
40 This software is copyright (c) 2017 by Gerda Shank.
41  
42 This is free software; you can redistribute it and/or modify it under
43 the same terms as the Perl 5 programming language system itself.
44  
45 =cut
« FormHandler/Test.pm ↑ Summary FormHandler/Field/File.pm »