line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Panda::Date::Rel; |
2
|
1
|
|
|
1
|
|
1517
|
use 5.012; |
|
1
|
|
|
|
|
3
|
|
3
|
1
|
|
|
1
|
|
29
|
use Panda::Date; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
use overload '""' => \&to_string, |
6
|
|
|
|
|
|
|
'bool' => \&to_bool, |
7
|
|
|
|
|
|
|
'0+' => \&to_number, |
8
|
|
|
|
|
|
|
'neg' => \&negative_new, |
9
|
|
|
|
|
|
|
'<=>' => \&compare, # based on to_sec() |
10
|
|
|
|
|
|
|
'eq' => \&equals, # based on full equality only |
11
|
|
|
|
|
|
|
'+' => \&add_new, |
12
|
|
|
|
|
|
|
'+=' => \&add, |
13
|
|
|
|
|
|
|
'-' => \&subtract_new, |
14
|
|
|
|
|
|
|
'-=' => \&subtract, |
15
|
|
|
|
|
|
|
'*' => \&multiply_new, |
16
|
|
|
|
|
|
|
'*=' => \&multiply, |
17
|
|
|
|
|
|
|
'/' => \÷_new, |
18
|
|
|
|
|
|
|
'/=' => \÷, |
19
|
|
|
|
|
|
|
'=' => sub { $_[0] }, |
20
|
|
|
|
|
|
|
fallback => 1; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
1; |