data::printer::filter::datetime(3pm) [debian man page]
Data::Printer::Filter::DateTime(3pm) User Contributed Perl Documentation Data::Printer::Filter::DateTime(3pm)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 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.14.2 2011-06-07 Data::Printer::Filter::DateTime(3pm)
Check Out this Related Man Page
DateTime::Format::Epoch::RataDie(3pm) User Contributed Perl Documentation DateTime::Format::Epoch::RataDie(3pm)NAME
DateTime::Format::Epoch::RataDie - Convert DateTimes to/from Rata Die
SYNOPSIS
use DateTime::Format::Epoch::RataDie;
my $dt = DateTime::Format::Epoch::RataDie->parse_datetime( $count );
DateTime::Format::Epoch::RataDie->format_datetime($dt);
# $count
my $formatter = DateTime::Format::Epoch::RataDie->new();
my $dt2 = $formatter->parse_datetime( $count );
$formatter->format_datetime($dt2);
DESCRIPTION
This module can convert a DateTime object (or any object that can be converted to a DateTime object) to the Rata Die count. See
DateTime::Format::Epoch::JD for a description.
METHODS
Most of the methods are the same as those in DateTime::Format::Epoch. The only difference is the constructor.
o new()
Constructor of the formatter/parser object. It has no parameters.
SUPPORT
Support for this module is provided via the datetime@perl.org email list. See http://lists.perl.org/ for more details.
AUTHOR
Eugene van der Pijll <pijll@gmx.net>
COPYRIGHT
Copyright (c) 2004 Eugene van der Pijll. All rights reserved. This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
SEE ALSO
DateTime
datetime@perl.org mailing list
perl v5.10.1 2007-12-03 DateTime::Format::Epoch::RataDie(3pm)
Hi to all,
A real virgin to unix, so sorry for such a basic question.
Have a older unix terminal with crashed server. Software resides to terminal. Don't have network printing capabilities. I removed network printer and gone local, but don't know how to redirect the device for local... (3 Replies)
I have a string of Data such as
Date Time Tran1 Tran2 Tran3 ......
How can I extract just all the trans excluding Date and Time.
Thanks,
Odogbolu98
;) (4 Replies)
I need to extract data from logs for a mentioned date range..Its quite urgent can anyone help me out with it..its to be written in unix..just thought its better to specify.. (4 Replies)
Hi,
I am new to printing with Unix (AIX on HP).
I am printing from a COBOL program.
On our test system the page prints and does a Form Feed to the next page. This is good.
When I release the program to our customer it prints the page but waits 5 or more seconds before doing a page... (11 Replies)
What is the best way of printing date-time at the beginning of each output line?
DTTIME=$(date +%Y%m%d%H%M%S)
myfile.log
0.0 5.2 0.0 41.6 0.1 0.8 15.0 160.2 8 40 d0
0.0 0.8 0.0 6.4 0.0 0.0 13.7 53.2 1 4 d2
3.3 109.4 16.9 721.5 0.9 7.0 ... (5 Replies)
Hi
I am dealing with the following string:
Date: Thur, 13 March 2011 01:01:10 +0000
I asked for help in another topic that converted a similar string:
Date: Thur, 13 March 2011 9:50 AM
To a 24 hr standard. The problem is that it comes out as:
Date: Thur, 13 March 2011 9:50:00 +0000... (4 Replies)
All,
Q: how would I add some escape codes to an interface that i have setup t print.?
Goal: to switch from NLQ to Util modes. back and forth.
Scenerio:
SCO OS 5.05
PRINTER: OKI Data 320 or similar. printer is called "test"
What I have done thus far. (just cannot get their)
I can from a... (6 Replies)
Data:
Pattern Data Data Data
Data Data Data
Data Data Data
...
With awk, how do I print the pattern matching line, then the subsequent lines following the pattern matching line. Varying number of lines following the pattern matching line. (9 Replies)
Hallo Team,
I need your help. I would like to change field9 format to yyyy-mm-dd it should be for example 2013-11-16 instead of 20131116
0780112843,0873599381,E,ISOL,ZAR,0.0035,O,1,20131116,4373200,0.21
0733001720,0873516499,E,ISOL,ZAR,0.0035,O,1,20131116,4331600,0.21... (3 Replies)
Hi all,
I want to output the following pattern in a comma separted format, but am not able to do it.
Table1.FIND.Value= 124
Data
Data
Data
Data
Data
Table1.FIND.Value =256
Data
Data
Data
Data
Data
The outPut i expect is (5 Replies)
I want to calculate duration for below file in this format
SID | Date | Starttime |Date |End time
1607 |2019-04-05|13:06:42|2019-04-05|13:07:12
2327 |2019-04-05|13:57:26|2019-04-05|13:57:43
O/p should be like this:
SID | Date | Starttime |Date |Endtime... (4 Replies)