line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
use strict; |
3
|
5
|
|
|
5
|
|
2082
|
|
|
5
|
|
|
|
|
12
|
|
|
5
|
|
|
|
|
179
|
|
4
|
|
|
|
|
|
|
use Data::Sah::Util::Role 'has_clause'; |
5
|
5
|
|
|
5
|
|
1157
|
use Role::Tiny; |
|
5
|
|
|
|
|
26
|
|
|
5
|
|
|
|
|
265
|
|
6
|
5
|
|
|
5
|
|
28
|
use Role::Tiny::With; |
|
5
|
|
|
|
|
8
|
|
|
5
|
|
|
|
|
33
|
|
7
|
5
|
|
|
5
|
|
726
|
|
|
5
|
|
|
|
|
10
|
|
|
5
|
|
|
|
|
581
|
|
8
|
|
|
|
|
|
|
with 'Data::Sah::Type::BaseType'; |
9
|
|
|
|
|
|
|
with 'Data::Sah::Type::Comparable'; |
10
|
|
|
|
|
|
|
with 'Data::Sah::Type::Sortable'; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
# XXX prop: year |
13
|
|
|
|
|
|
|
# XXX prop: quarter (1-4) |
14
|
|
|
|
|
|
|
# XXX prop: month |
15
|
|
|
|
|
|
|
# XXX prop: day |
16
|
|
|
|
|
|
|
# XXX prop: day_of_month |
17
|
|
|
|
|
|
|
# XXX prop: hour |
18
|
|
|
|
|
|
|
# XXX prop: minute |
19
|
|
|
|
|
|
|
# XXX prop: second |
20
|
|
|
|
|
|
|
# XXX prop: millisecond |
21
|
|
|
|
|
|
|
# XXX prop: microsecond |
22
|
|
|
|
|
|
|
# XXX prop: nanosecond |
23
|
|
|
|
|
|
|
# XXX prop: day_of_week |
24
|
|
|
|
|
|
|
# XXX prop: day_of_quarter |
25
|
|
|
|
|
|
|
# XXX prop: day_of_year |
26
|
|
|
|
|
|
|
# XXX prop: week_of_month |
27
|
|
|
|
|
|
|
# XXX prop: week_of_year |
28
|
|
|
|
|
|
|
# XXX prop: date? |
29
|
|
|
|
|
|
|
# XXX prop: time? |
30
|
|
|
|
|
|
|
# XXX prop: time_zone_long_name |
31
|
|
|
|
|
|
|
# XXX prop: time_zone_offset |
32
|
|
|
|
|
|
|
# XXX prop: is_leap_year |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY |
35
|
|
|
|
|
|
|
our $DATE = '2022-09-30'; # DATE |
36
|
|
|
|
|
|
|
our $DIST = 'Data-Sah'; # DIST |
37
|
|
|
|
|
|
|
our $VERSION = '0.913'; # VERSION |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
1; |
40
|
|
|
|
|
|
|
# ABSTRACT: date type |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=pod |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=encoding UTF-8 |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head1 NAME |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
Data::Sah::Type::date - date type |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head1 VERSION |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
This document describes version 0.913 of Data::Sah::Type::date (from Perl distribution Data-Sah), released on 2022-09-30. |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=for Pod::Coverage ^(clause_.+|clausemeta_.+)$ |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 HOMEPAGE |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
Please visit the project's homepage at L<https://metacpan.org/release/Data-Sah>. |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head1 SOURCE |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
Source repository is at L<https://github.com/perlancar/perl-Data-Sah>. |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=head1 AUTHOR |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
perlancar <perlancar@cpan.org> |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=head1 CONTRIBUTING |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
To contribute, you can send patches by email/via RT, or send pull requests on |
73
|
|
|
|
|
|
|
GitHub. |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
Most of the time, you don't need to build the distribution yourself. You can |
76
|
|
|
|
|
|
|
simply modify the code, then test via: |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
% prove -l |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
If you want to build the distribution (e.g. to try to install it locally on your |
81
|
|
|
|
|
|
|
system), you can install L<Dist::Zilla>, |
82
|
|
|
|
|
|
|
L<Dist::Zilla::PluginBundle::Author::PERLANCAR>, |
83
|
|
|
|
|
|
|
L<Pod::Weaver::PluginBundle::Author::PERLANCAR>, and sometimes one or two other |
84
|
|
|
|
|
|
|
Dist::Zilla- and/or Pod::Weaver plugins. Any additional steps required beyond |
85
|
|
|
|
|
|
|
that are considered a bug and can be reported to me. |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
This software is copyright (c) 2022, 2021, 2020, 2019, 2018, 2017, 2016, 2015, 2014, 2013, 2012 by perlancar <perlancar@cpan.org>. |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
92
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
=head1 BUGS |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=Data-Sah> |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
When submitting a bug or request, please include a test-file or a |
99
|
|
|
|
|
|
|
patch to an existing test-file that illustrates the bug or desired |
100
|
|
|
|
|
|
|
feature. |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
=cut |