line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Spreadsheet::Engine::Function::DATE; |
2
|
|
|
|
|
|
|
|
3
|
28
|
|
|
28
|
|
170
|
use strict; |
|
28
|
|
|
|
|
63
|
|
|
28
|
|
|
|
|
912
|
|
4
|
28
|
|
|
28
|
|
145
|
use warnings; |
|
28
|
|
|
|
|
59
|
|
|
28
|
|
|
|
|
722
|
|
5
|
|
|
|
|
|
|
|
6
|
28
|
|
|
28
|
|
149
|
use base 'Spreadsheet::Engine::Fn::math'; |
|
28
|
|
|
|
|
54
|
|
|
28
|
|
|
|
|
2228
|
|
7
|
|
|
|
|
|
|
|
8
|
28
|
|
|
28
|
|
176
|
use Spreadsheet::Engine::Sheet qw/convert_date_gregorian_to_julian/; |
|
28
|
|
|
|
|
60
|
|
|
28
|
|
|
|
|
6474
|
|
9
|
|
|
|
|
|
|
|
10
|
1694
|
|
|
1694
|
1
|
4054
|
sub argument_count { 3 } |
11
|
1694
|
|
|
1694
|
1
|
6871
|
sub signature { 'n', 'n', 'n' } |
12
|
1694
|
|
|
1694
|
1
|
39122
|
sub result_type { Spreadsheet::Engine::Value->new(type => 'nd') } |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub calculate { |
15
|
1694
|
|
|
1694
|
1
|
61693
|
my ($self, $y, $m, $d) = @_; |
16
|
1694
|
|
|
|
|
6408
|
return convert_date_gregorian_to_julian(int($y), int($m), int($d)) - |
17
|
|
|
|
|
|
|
$self->JULIAN_OFFSET; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
1; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
__END__ |