File Coverage

blib/lib/Data/Sah/Coerce/perl/To_datenotime/From_obj/datetime.pm
Criterion Covered Total %
statement 11 11 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 15 15 100.0


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