Helper/Schema/DateTime.pm

filter: Statementstmt 100% 14 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 0.0% 0 / 3 totaltotal 86.9% 20 / 23 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Helper/Row/SubClass.pm ↑ Summary Helper/ResultSet/Union.pm »
1 package DBIx::Class::Helper::Schema::DateTime;
2 1 $DBIx::Class::Helper::Schema::DateTime::VERSION = '2.032002';
3 # ABSTRACT: DateTime helper
4  
5 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 ▶use parent 'DBIx::Class::Schema';
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 5 ▶sub datetime_parser { return shift->storage->datetime_parser }
Subroutine datetime_parser: called CC=1 SCAR=0.0
Pod undocumented
11  
12 1 ▶sub parse_datetime { return shift->datetime_parser->parse_datetime(@_) }
Subroutine parse_datetime: called CC=1 SCAR=0.0
Pod undocumented
13  
14 3 ▶sub format_datetime { return shift->datetime_parser->format_datetime(@_) }
Subroutine format_datetime: called CC=1 SCAR=0.0
Pod undocumented
15  
16 1 1;
17  
18 __END__
19  
20 =pod
21  
22 =head1 NAME
23  
24 DBIx::Class::Helper::Schema::DateTime - DateTime helper
25  
26 =head1 SYNOPSIS
27  
28 package MyApp::Schema;
29  
30 __PACKAGE__->load_components('Helper::Schema::DateTime');
31  
32 ...
33  
34 $schema->resultset('Book')->search({
35 written_on => $schema->format_datetime(DateTime->now)
36 });
37  
38 =head1 AUTHOR
39  
40 Arthur Axel "fREW" Schmidt <frioux+cpan@gmail.com>
41  
42 =head1 COPYRIGHT AND LICENSE
43  
44 This software is copyright (c) 2016 by Arthur Axel "fREW" Schmidt.
45  
46 This is free software; you can redistribute it and/or modify it under
47 the same terms as the Perl 5 programming language system itself.
48  
49 =cut
« Helper/Row/SubClass.pm ↑ Summary Helper/ResultSet/Union.pm »