line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
2
|
|
|
2
|
|
1217
|
use 5.20.0; |
|
2
|
|
|
|
|
9
|
|
2
|
2
|
|
|
2
|
|
12
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
50
|
|
3
|
2
|
|
|
2
|
|
10
|
use warnings; |
|
2
|
|
|
|
|
11
|
|
|
2
|
|
|
|
|
113
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package DBIx::Class::Smooth::Lookup::DateTime::hour; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
# ABSTRACT: Short intro |
8
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:CSSON'; # AUTHORITY |
9
|
|
|
|
|
|
|
our $VERSION = '0.0101'; |
10
|
|
|
|
|
|
|
|
11
|
2
|
|
|
2
|
|
12
|
use parent 'DBIx::Class::Smooth::Lookup::DateTime::datepart'; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
9
|
|
12
|
2
|
|
|
2
|
|
130
|
use experimental qw/signatures postderef/; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
18
|
|
13
|
|
|
|
|
|
|
|
14
|
0
|
|
|
0
|
0
|
|
sub smooth__lookup__hour($self, $column_name, $value, @rest) { |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
15
|
0
|
|
|
|
|
|
return $self->smooth__lookup__datepart($column_name, $value, ['hour']); |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
1; |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
__END__ |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=pod |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=encoding UTF-8 |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head1 NAME |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
DBIx::Class::Smooth::Lookup::DateTime::hour - Short intro |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head1 VERSION |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
Version 0.0101, released 2018-11-29. |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 SOURCE |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
L<https://github.com/Csson/p5-DBIx-Class-Smooth> |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head1 HOMEPAGE |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
L<https://metacpan.org/release/DBIx-Class-Smooth> |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head1 AUTHOR |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
Erik Carlsson <info@code301.com> |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
This software is copyright (c) 2018 by Erik Carlsson. |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
51
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=cut |