Sah/Schema/date/month_name/en.pm

filter: Statementstmt 100% 9 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 100% 10 / 10 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
CRAP 1.0
« Sah/Schema/date/month/en.pm ↑ Summary Sah/Schema/date/month_num.pm »
1 package Sah::Schema::date::month_name::en;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 1 our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
6 1 our $DATE = '2023-12-09'; # DATE
7 1 our $DIST = 'Sah-Schemas-Date'; # DIST
8 1 our $VERSION = '0.019'; # VERSION
9  
10 1 our $schema = [cistr => {
11 summary => 'Month name (abbreviated or full, in English), e.g. "jan" or "September"',
12 in => [
13 qw/jan feb mar apr may jun jul aug sep oct nov dec/,
14 qw/january february march april june july august september october november december/,
15 ],
16 description => <<'_',
17  
18 See also: <pm:Sah::Schema::date::month_num>.
19  
20 See also related schemas for other locales, e.g.
21 <pm:Sah::Schema::date::month_name::id> (Indonesian),
22 <pm:Sah::Schema::date::month_name::en_or_id> (English/Indonesian), etc.
23  
24 _
25 examples => [
26 {value=>'', valid=>0, summary=>'Empty string'},
27 {value=>1, valid=>0, summary=>'Not month name'},
28 {value=>'jan', valid=>1},
29 {value=>'FeB', valid=>1},
30 {value=>'March', valid=>1},
31 {value=>'foo', valid=>0, summary=>'Unknown month name'},
32 {value=>13, valid=>0, summary=>'Not month name'},
33 ],
34 }];
35  
36 1 1;
37  
38 # ABSTRACT: Month name (abbreviated or full, in English), e.g. "jan" or "September"
39  
40 __END__
« Sah/Schema/date/month/en.pm ↑ Summary Sah/Schema/date/month_num.pm »