line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
4
|
|
|
4
|
|
17
|
use strict; |
|
4
|
|
|
|
|
5
|
|
|
4
|
|
|
|
|
118
|
|
2
|
4
|
|
|
4
|
|
17
|
use warnings; |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
196
|
|
3
|
|
|
|
|
|
|
package Device::RFXCOM::Response::DateTime; |
4
|
|
|
|
|
|
|
$Device::RFXCOM::Response::DateTime::VERSION = '1.163170'; |
5
|
|
|
|
|
|
|
# ABSTRACT: Device::RFXCOM::Response class for DateTime message from RFXCOM receiver |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
|
8
|
4
|
|
|
4
|
|
68
|
use 5.006; |
|
4
|
|
|
|
|
11
|
|
9
|
4
|
|
|
4
|
|
22
|
use constant DEBUG => $ENV{DEVICE_RFXCOM_RESPONSE_DATETIME_DEBUG}; |
|
4
|
|
|
|
|
5
|
|
|
4
|
|
|
|
|
260
|
|
10
|
4
|
|
|
4
|
|
18
|
use Carp qw/croak/; |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
874
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub new { |
14
|
1
|
|
|
1
|
1
|
6
|
my ($pkg, %p) = @_; |
15
|
1
|
|
|
|
|
11
|
bless { %p }, $pkg; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
|
19
|
1
|
|
|
1
|
1
|
7
|
sub type { 'datetime' } |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
|
22
|
1
|
|
|
1
|
1
|
14
|
sub device { shift->{device} } |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
|
25
|
1
|
|
|
1
|
1
|
8
|
sub date { shift->{date} } |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
|
28
|
1
|
|
|
1
|
1
|
8
|
sub time { shift->{time} } |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
|
31
|
1
|
|
|
1
|
1
|
9
|
sub day { shift->{day} } |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub summary { |
35
|
1
|
|
|
1
|
1
|
3
|
my $self = shift; |
36
|
1
|
|
|
|
|
5
|
$self->type.'/'.$self->device.'='.$self->date.' '.$self->time.' '.$self->day; |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
1; |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
__END__ |