| 1 | package DateTime::Format::Epoch::Lilian; | ||
| 2 | |||
| 3 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | 1 | ▶ | use vars qw($VERSION @ISA); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 1 | $VERSION = '0.13'; | |
| 8 | |||
| 9 | 1 | ▶ | use DateTime; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 1 | ▶ | use DateTime::Format::Epoch; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | 1 | @ISA = qw/DateTime::Format::Epoch/; | |
| 13 | |||
| 14 | 1 | my $epoch = DateTime->new( year => 1582, month => 10, day => 14 ); | |
| 15 | |||
| 16 | 3 | ▶ | sub new { |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||
| 17 | 3 | my $class = shift; | |
| 18 | |||
| 19 | 3 | return $class->SUPER::new( epoch => $epoch, | |
| 20 | unit => 1/86400, | ||
| 21 | type => 'int', | ||
| 22 | skip_leap_seconds => 1 ); | ||
| 23 | } | ||
| 24 | |||
| 25 | 1 | 1; | |
| 26 | __END__ | ||