| 1 | |||
| 2 | package DateTime::Format::Atom; | ||
| 3 | |||
| 4 | 3 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 3 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 3 | ▶ | use version; our $VERSION = qv( 'v1.8.0' ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 3 | ▶ | use DateTime::Format::RFC3339 qw( ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | |||
| 12 | 3 | ▶ | use constant NEXT_IDX => 0; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | |||
| 14 | |||
| 15 | 3 | my $helper = DateTime::Format::RFC3339->new( uc_only => 1 ); | |
| 16 | |||
| 17 | |||
| 18 | 0 | ▶ | sub new { |
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 19 | 0 | my $class = shift; | |
| 20 | #my %opts = @_; | ||
| 21 | |||
| 22 | 0 | my $self = bless( [], $class ); | |
| 23 | |||
| 24 | # $self->[ IDX_HELPER ]->parse_datetime( $str ); | ||
| 25 | |||
| 26 | 0 | return $self; | |
| 27 | } | ||
| 28 | |||
| 29 | |||
| 30 | 1 | ▶ | sub parse_datetime { |
|
Subroutine
parse_datetime: called CC=1 SCAR=0.0
Pod
documented
| |||
| 31 | 1 | my $self = shift; | |
| 32 | 1 | my $str = shift; | |
| 33 | |||
| 34 | # $self = $default_self //= $self->new() | ||
| 35 | # if !ref( $self ); | ||
| 36 | # | ||
| 37 | # return $self->[ IDX_HELPER ]->parse_datetime( $str ); | ||
| 38 | |||
| 39 | 1 | return $helper->parse_datetime( $str ); | |
| 40 | } | ||
| 41 | |||
| 42 | |||
| 43 | 1 | ▶ | sub format_datetime { |
|
Subroutine
format_datetime: called CC=1 SCAR=0.0
Pod
documented
| |||
| 44 | 1 | my $self = shift; | |
| 45 | 1 | my $dt = shift; | |
| 46 | |||
| 47 | # $self = $default_self //= $self->new() | ||
| 48 | # if !ref( $self ); | ||
| 49 | # | ||
| 50 | # return $self->[ IDX_HELPER ]->format_datetime( $dt ); | ||
| 51 | |||
| 52 | 1 | return $helper->format_datetime( $dt ); | |
| 53 | } | ||
| 54 | |||
| 55 | |||
| 56 | 3 | 1; | |
| 57 | |||
| 58 | |||
| 59 | __END__ | ||