line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
use 5.010; |
3
|
1
|
|
|
1
|
|
16
|
use strict; |
|
1
|
|
|
|
|
6
|
|
4
|
1
|
|
|
1
|
|
8
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
17
|
|
5
|
1
|
|
|
1
|
|
4
|
#use Log::Any '$log'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
36
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
use Mo qw(build default); |
8
|
1
|
|
|
1
|
|
6
|
use Role::Tiny::With; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
5
|
|
9
|
1
|
|
|
1
|
|
245
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
164
|
|
10
|
|
|
|
|
|
|
extends 'Data::Sah::Compiler::human::TH::date'; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY |
13
|
|
|
|
|
|
|
our $DATE = '2022-08-20'; # DATE |
14
|
|
|
|
|
|
|
our $DIST = 'Data-Sah'; # DIST |
15
|
|
|
|
|
|
|
our $VERSION = '0.912'; # VERSION |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
|
18
|
12
|
|
|
12
|
0
|
45
|
my ($self, $cd) = @_; |
19
|
|
|
|
|
|
|
my $c = $self->compiler; |
20
|
|
|
|
|
|
|
|
21
|
12
|
|
|
12
|
0
|
21
|
$c->add_ccl($cd, {type=>'noun', fmt => ["datetime", "datetimes"]}); |
22
|
12
|
|
|
|
|
26
|
} |
23
|
|
|
|
|
|
|
|
24
|
12
|
|
|
|
|
78
|
1; |
25
|
|
|
|
|
|
|
# ABSTRACT: perl's type handler for type "datetime" |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=pod |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=encoding UTF-8 |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head1 NAME |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
Data::Sah::Compiler::human::TH::datetime - perl's type handler for type "datetime" |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 VERSION |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
This document describes version 0.912 of Data::Sah::Compiler::human::TH::datetime (from Perl distribution Data-Sah), released on 2022-08-20. |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=for Pod::Coverage ^(name|clause_.+|superclause_.+|before_.+|after_.+)$ |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head1 HOMEPAGE |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
Please visit the project's homepage at L<https://metacpan.org/release/Data-Sah>. |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head1 SOURCE |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
Source repository is at L<https://github.com/perlancar/perl-Data-Sah>. |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head1 AUTHOR |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
perlancar <perlancar@cpan.org> |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head1 CONTRIBUTING |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
To contribute, you can send patches by email/via RT, or send pull requests on |
58
|
|
|
|
|
|
|
GitHub. |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
Most of the time, you don't need to build the distribution yourself. You can |
61
|
|
|
|
|
|
|
simply modify the code, then test via: |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
% prove -l |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
If you want to build the distribution (e.g. to try to install it locally on your |
66
|
|
|
|
|
|
|
system), you can install L<Dist::Zilla>, |
67
|
|
|
|
|
|
|
L<Dist::Zilla::PluginBundle::Author::PERLANCAR>, |
68
|
|
|
|
|
|
|
L<Pod::Weaver::PluginBundle::Author::PERLANCAR>, and sometimes one or two other |
69
|
|
|
|
|
|
|
Dist::Zilla- and/or Pod::Weaver plugins. Any additional steps required beyond |
70
|
|
|
|
|
|
|
that are considered a bug and can be reported to me. |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
This software is copyright (c) 2022, 2021, 2020, 2019, 2018, 2017, 2016, 2015, 2014, 2013, 2012 by perlancar <perlancar@cpan.org>. |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
77
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=head1 BUGS |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=Data-Sah> |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
When submitting a bug or request, please include a test-file or a |
84
|
|
|
|
|
|
|
patch to an existing test-file that illustrates the bug or desired |
85
|
|
|
|
|
|
|
feature. |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
=cut |