10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
There are 2 dates,
Tue Oct 1 13:40:19 2013
Sun Sept 30 10:26:23 2013
I have multiple dates like the above one. How do I calculate the date time difference and display in another column in Shell script. Please help. (3 Replies)
Discussion started by: tanmoysays
3 Replies
2. Shell Programming and Scripting
Hi,
how to calculate the time difference between PST date and PDT date in perl scripting.
date1: Mon Dec 31 16:00:01 PST 2015
date2: Tue Mar 19 06:09:30 PDT 2013
and also difference between PST-PST and PDT-PDT
need difference in months or days (months prefereble). (3 Replies)
Discussion started by: praveen265
3 Replies
3. Shell Programming and Scripting
I have 2 variables
MTIME="Jan_2_2012_23:55:49"
SCH_TIME="Jan_03_2012_00:32:28"
I want to find the time taken (in seconds) between MTIME and SCH_TIME.
Is there any way by which this can be done in Unix Shell Script? (4 Replies)
Discussion started by: ankitncr
4 Replies
4. Shell Programming and Scripting
Hello
I have a file in following format:
IV 08:09:07
NM 08:12:01
IC 08:12:00
MN 08:14:20
NM 08:14:15
I need a script to compare time on each line with previous line and show the inconsecutive line. Ex.:
08:12:00
08:14:15
A better way... (6 Replies)
Discussion started by: vilibit
6 Replies
5. Shell Programming and Scripting
so in unix this command works works and shows me a list of directories
find . -name \*.xls -exec dirname {} \; | sort -u | > list.txt
but when i try running a perl script to run this command
my $query = 'find . -name \*.xls -exec dirname {} \; | sort -u | > list.txt';... (2 Replies)
Discussion started by: kpddong
2 Replies
6. Shell Programming and Scripting
Hello,
I am having hard time calculating the time differnce in the below sequence. I tried nested for loops but I can't get to work.
Algorithm:
find time difference between the first AVAIL and the next event just before AVAIL.
0 05/17/2010 09:33 AVAIL <-- 1
1 05/17/2010 09:32 UM ... (2 Replies)
Discussion started by: bataf
2 Replies
7. Shell Programming and Scripting
I having probelm in time difference output using Delta_YMDHMS, using below start date and enddate I get -30days. Any idea how to fix this issue.
output : 0,1,-30, 0,0,0
Thanks,
Bataf
use POSIX qw/strftime/;
use Date::Calc qw(Delta_YMDHMS);
use Time::Local;
$start_date =... (1 Reply)
Discussion started by: bataf
1 Replies
8. Shell Programming and Scripting
Hi,
START_TIME :- "10-NOV-2009 00:00:04"
STOP_TIME :- "10-NOV-2009 00:05:47"
Please help to find difference between these two.
Searched for the same topic but did not find an answer for the same time format :(
Regards,
Robin (3 Replies)
Discussion started by: robinbannis
3 Replies
9. Shell Programming and Scripting
is there any ways to get the time difference between 2 dates in UNIX?
for example, For below date the outut should come 22 minutes
startdate enddate
========= =======
06/17/2008 13:25 06/17/2008 13:47
For, below date, the output should come 1462 minutes
... (5 Replies)
Discussion started by: Amit.Sagpariya
5 Replies
10. UNIX for Dummies Questions & Answers
Hi all,
here is a problem,
i am having a data in a file of this format,
cat filename|grep -ivn edc|tr -s ' ' +|cut -d+ f1,12
1 01:18:38 2007
25 01:43:38 2007
48 01:58:45 2007
71 02:11:02 2007
102 02:19:51 2007
and so on ........ ....... .
here... (4 Replies)
Discussion started by: gsp
4 Replies