Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Data::Printer::Filter:UsereContributed Perl Data::Printer::Filter::DateTime(3)

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

SYNOPSIS
       In your program:

	 use Data::Printer filters => {
	   -external =>	[ 'DateTime' ],
	 };

       or, in your ".dataprinter" file:

	 {
	   filters => {
	      -external	=> [ 'DateTime'	],
	   },
	 };

       You can also setup color	and display details:

	 use Data::Printer
	     filters =>	{
		 -external => [	'DateTime' ],
	     },
	     color   =>	{
		 datetime => 'bright_green',
	     }
	     datetime => {
		 show_class_name => 1,	# default is 0
		 show_timezone	 => 0,	# default is 1 (only works for DateTime	objects)
	     },
	 };

DESCRIPTION
       This is a filter	plugin for Data::Printer. It filters through several
       date and	time manipulation classes and displays the time	(or time
       duration) as a string.

   Parsed Modules
       o   DateTime

       o   DateTime::Duration

       o   DateTime::Incomplete

       o   Class::Date

       o   Time::Piece

       o   Date::Handler

       o   Date::Handler::Delta

       o   Date::Calc::Object

       o   Date::Pcalc::Object

       If you have any suggestions for more modules or better output, please
       let us know.

SEE ALSO
       Data::Printer

perl v5.24.1			  2015-05-29Data::Printer::Filter::DateTime(3)

NAME | SYNOPSIS | DESCRIPTION | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Data::Printer::Filter::DateTime&sektion=3&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help