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