line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Data::Sah::Coerce::perl::To_datenotime::From_obj::time_moment; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
19
|
use 5.010001; |
|
1
|
|
|
|
|
4
|
|
4
|
1
|
|
|
1
|
|
40
|
use strict; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
28
|
|
5
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
28
|
|
6
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
5
|
use subroutines 'Data::Sah::Coerce::perl::To_date::From_obj::time_moment'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
5
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY |
10
|
|
|
|
|
|
|
our $DATE = '2021-11-28'; # DATE |
11
|
|
|
|
|
|
|
our $DIST = 'Data-Sah-Coerce'; # DIST |
12
|
|
|
|
|
|
|
our $VERSION = '0.052'; # VERSION |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
1; |
15
|
|
|
|
|
|
|
# ABSTRACT: Coerce date from Time::Moment object |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
__END__ |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=pod |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=encoding UTF-8 |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=head1 NAME |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
Data::Sah::Coerce::perl::To_datenotime::From_obj::time_moment - Coerce date from Time::Moment object |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=head1 VERSION |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
This document describes version 0.052 of Data::Sah::Coerce::perl::To_datenotime::From_obj::time_moment (from Perl distribution Data-Sah-Coerce), released on 2021-11-28. |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 SYNOPSIS |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
To use in a Sah schema: |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
["datenotime",{"x.perl.coerce_rules"=>["From_obj::time_moment"]}] |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=for Pod::Coverage ^(meta|coerce)$ |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 HOMEPAGE |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
Please visit the project's homepage at L<https://metacpan.org/release/Data-Sah-Coerce>. |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 SOURCE |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
Source repository is at L<https://github.com/perlancar/perl-Data-Sah-Coerce>. |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head1 AUTHOR |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
perlancar <perlancar@cpan.org> |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head1 CONTRIBUTING |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
To contribute, you can send patches by email/via RT, or send pull requests on |
55
|
|
|
|
|
|
|
GitHub. |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
Most of the time, you don't need to build the distribution yourself. You can |
58
|
|
|
|
|
|
|
simply modify the code, then test via: |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
% prove -l |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
If you want to build the distribution (e.g. to try to install it locally on your |
63
|
|
|
|
|
|
|
system), you can install L<Dist::Zilla>, |
64
|
|
|
|
|
|
|
L<Dist::Zilla::PluginBundle::Author::PERLANCAR>, and sometimes one or two other |
65
|
|
|
|
|
|
|
Dist::Zilla plugin and/or Pod::Weaver::Plugin. Any additional steps required |
66
|
|
|
|
|
|
|
beyond that are considered a bug and can be reported to me. |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
This software is copyright (c) 2021, 2020, 2019, 2018, 2017, 2016 by perlancar <perlancar@cpan.org>. |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
73
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=head1 BUGS |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=Data-Sah-Coerce> |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
When submitting a bug or request, please include a test-file or a |
80
|
|
|
|
|
|
|
patch to an existing test-file that illustrates the bug or desired |
81
|
|
|
|
|
|
|
feature. |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
=cut |