Can someone help me with a Unix or perl script to convert the unix timestamps to human readable format?
Any help will be highly appreciated... (3 Replies)
I'm writting a script to find the difference between two timestamp. One field i get on delivery time of the file like 07:17 AM and other is my SLA time 06:30 AM
I need to find the difference between these two time (time exceeded to meet SLA). Need some suggestions. (8 Replies)
Here is a problem that involves looping:
- I have multiple files with same name but different timestamps:
e.g test20080226144525.txt, test20080227144525.txt (can be more
than two files).
- I want to take the collection of these files (e.g test*) and append all its contents... (2 Replies)
Hello!
I have the following problem.
I read a file using perl, each line of this file has the fllowing format.
14/4/2008 8:42:03 πμ|10800|306973223399|4917622951117|1||1259|1|126|492|433||19774859454$
Th first field is the timestamp and the second field is the offset in seconds.
How can... (1 Reply)
Hi! Long time reader first time registered user and poster.
I've picked up some times and tricks and I'm at a dead end... I've parsed a log file for duplicates and printed only the two fields I need (duplicate entry and time stamp).
My question is, with this output, how would I script... (2 Replies)
Hi,
i have current timestamp, lets say "12:02:45" in an variable (var1) and another timestamp "08:30:00" fetched from table in another variable2 (var2).
How do i compare 2 timestamps in unix shell scripting.
if var 1 > var 2 then echo message.
Thanks in advance. (3 Replies)
Hello fellow Unix geeks,
I have been given a very urgent assignment in my office on writing a particular Shell script but I'm very much new to it.I would appreciate any help from you on solving this problem--which might seem very trivial to you.
The Unix flavour is a Sun Solaris one..(not... (6 Replies)
Hi,
Need to grep for a error in a log file but between two timestamps / patterns
example: in the below log file if the given timestamps are 14:00 to 15:00
and m greping for error only error3 should come in the output.
pls note that apart from timestamps printed, the log file has no... (2 Replies)
Hi all!!,
I'm using Ksh and working on Linux.
I want to compare two timestamps, timestamp1 and timestamp2.
Until, timestamp1 is lesser than timestamp2, i want to do something, lets say print something.
The code i have written is:
a=`date +%H:%M:%S`
b=`date +%H:%M:%S -d" 1... (1 Reply)
hello
i'm using SOX to generate a spectrogram from a wave file with the command :
#sox file.wav -n spectrogram
is there a way to create a spectrogram using the same command but reading file timestamps instead of the namefile.wav , since name is changing every 4 hours? (it's saved with... (2 Replies)
Discussion started by: Board27
2 Replies
LEARN ABOUT DEBIAN
dancer::timer
Dancer::Timer(3pm) User Contributed Perl Documentation Dancer::Timer(3pm)NAME
Dancer::Timer - a timer for Dancer
SYNOPSIS
use Dancer::Timer;
my $timer = Dancer::Timer->new();
my $time = $timer->tick;
print "[$time]: Doing something
";
# (time passes)
$time = $timer->tick;
print "[$time]: Doing something else
";
# (time passes)
$time = $timer->to_string;
print "[$time]: Doing another thing
";
DESCRIPTION
Dancer::Timer provides Dancer with a timing object to clock operations. For example, you might want a logging that shows you when each
operation happened (at what time) to determine how long each operation was in order to know where to focus on for possible bugs or perhaps
unnecessary slowness.
Dancer uses Dancer::Timer in facilities that want to provide this for you. Any plugin author is more than welcome to use it as well.
ATTRIBUTES
start_time
Retains the starting time of the timer. The default value is when the object is created. It fetches that using "gettimeofday" from
Time::HiRes.
METHODS
init
This method is called when "->new()" is called. It initializes the "start_time" attribute.
tick
Creates a tick in the timer and returns the interval between the "start_time" and now.
to_string
Same as "tick", just more expressive.
AUTHOR
Alexis Sukrieh
LICENSE AND COPYRIGHT
Copyright 2009-2010 Alexis Sukrieh.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as
published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
perl v5.14.2 2012-01-28 Dancer::Timer(3pm)