1Data::Printer::Filter::UDsaetreTCiomnet(r3i)buted Perl DDoactuam:e:nPtraitnitoenr::Filter::DateTime(3)
2
3
4

NAME

6       Data::Printer::Filter::DateTime - pretty-printing date and time objects
7       (not just DateTime!)
8

SYNOPSIS

10       In your program:
11
12         use Data::Printer filters => {
13           -external => [ 'DateTime' ],
14         };
15
16       or, in your ".dataprinter" file:
17
18         {
19           filters => {
20              -external => [ 'DateTime' ],
21           },
22         };
23
24       You can also setup color and display details:
25
26         use Data::Printer
27             filters => {
28                 -external => [ 'DateTime' ],
29             },
30             color   => {
31                 datetime => 'bright_green',
32             }
33             datetime => {
34                 show_class_name => 1,  # default is 0
35                 show_timezone   => 0,  # default is 1 (only works for DateTime objects)
36             },
37         };
38

DESCRIPTION

40       This is a filter plugin for Data::Printer. It filters through several
41       date and time manipulation classes and displays the time (or time
42       duration) as a string.
43
44   Parsed Modules
45       ·   DateTime
46
47       ·   DateTime::Duration
48
49       ·   DateTime::Incomplete
50
51       ·   Class::Date
52
53       ·   Time::Piece
54
55       ·   Date::Handler
56
57       ·   Date::Handler::Delta
58
59       ·   Date::Calc::Object
60
61       ·   Date::Pcalc::Object
62
63       If you have any suggestions for more modules or better output, please
64       let us know.
65

SEE ALSO

67       Data::Printer
68
69
70
71perl v5.32.0                      2020-07-28Data::Printer::Filter::DateTime(3)
Impressum