blib/lib/Clustericious/Client/Object/DateTime.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 12 | 12 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 4 | 4 | 100.0 |
pod | 1 | 1 | 100.0 |
total | 17 | 17 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Clustericious::Client::Object::DateTime; | ||||||
2 | |||||||
3 | 2 | 2 | 12288 | use strict; | |||
2 | 7 | ||||||
2 | 86 | ||||||
4 | 2 | 2 | 12 | use warnings; | |||
2 | 4 | ||||||
2 | 121 | ||||||
5 | |||||||
6 | # ABSTRACT: Clustericious DateTime object | ||||||
7 | our $VERSION = '0.85'; # VERSION | ||||||
8 | |||||||
9 | |||||||
10 | 2 | 2 | 2071 | use DateTime::Format::ISO8601; | |||
2 | 291179 | ||||||
2 | 361 | ||||||
11 | |||||||
12 | |||||||
13 | sub new | ||||||
14 | { | ||||||
15 | 1 | 1 | 1 | 504 | my $class = shift; | ||
16 | 1 | 3 | my ($datetime) = @_; | ||||
17 | |||||||
18 | 1 | 7 | DateTime::Format::ISO8601->new->parse_datetime($datetime); | ||||
19 | } | ||||||
20 | |||||||
21 | 1; | ||||||
22 | |||||||
23 | __END__ |