| 1 | package Data::Sah::Compiler::human::TH::date; | ||
| 2 | |||
| 3 | 8 | ▶ | use 5.010; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 8 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 8 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | #use Log::Any '$log'; | ||
| 7 | |||
| 8 | 8 | ▶ | use Mo qw(build default); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 8 | ▶ | use Role::Tiny::With; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 8 | extends 'Data::Sah::Compiler::human::TH'; | |
| 12 | 8 | with 'Data::Sah::Compiler::human::TH::Comparable'; | |
| 13 | 8 | with 'Data::Sah::Compiler::human::TH::Sortable'; | |
| 14 | 8 | with 'Data::Sah::Type::date'; | |
| 15 | |||
| 16 | 8 | our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY | |
| 17 | 8 | our $DATE = '2024-02-16'; # DATE | |
| 18 | 8 | our $DIST = 'Data-Sah'; # DIST | |
| 19 | 8 | our $VERSION = '0.917'; # VERSION | |
| 20 | |||
| 21 | 32 | ▶ | sub name { "date" } |
|
Subroutine
name: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 22 | |||
| 23 | 32 | ▶ | sub handle_type { |
|
Subroutine
handle_type: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 24 | 32 | my ($self, $cd) = @_; | |
| 25 | 32 | my $c = $self->compiler; | |
| 26 | |||
| 27 | 32 | $c->add_ccl($cd, {type=>'noun', fmt => ["date", "dates"]}); | |
| 28 | } | ||
| 29 | |||
| 30 | 8 | 1; | |
| 31 | # ABSTRACT: human's type handler for type "date" | ||
| 32 | |||
| 33 | __END__ | ||