blib/lib/DateTimeX/Immutable.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 9 | 9 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 3 | 3 | 100.0 |
pod | n/a | ||
total | 12 | 12 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package DateTimeX::Immutable; | ||||||
2 | |||||||
3 | # ABSTRACT: An immutable subclass of DateTime | ||||||
4 | |||||||
5 | 2 | 2 | 36647 | use strict; | |||
2 | 5 | ||||||
2 | 80 | ||||||
6 | 2 | 2 | 9 | use warnings; | |||
2 | 2 | ||||||
2 | 55 | ||||||
7 | 2 | 2 | 9 | use base 'DateTime'; | |||
2 | 7 | ||||||
2 | 851 | ||||||
8 | use Role::Tiny::With; | ||||||
9 | use namespace::autoclean; | ||||||
10 | |||||||
11 | our $VERSION = '0.34'; | ||||||
12 | |||||||
13 | with 'DateTimeX::Role::Immutable'; | ||||||
14 | |||||||
15 | sub st { return shift->strftime("%FT%T%Z"); } | ||||||
16 | sub dt { return shift->st; } | ||||||
17 | |||||||
18 | 1; | ||||||
19 | |||||||
20 | __END__ |