10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
How to find the difference between below epoc dates in HH:MM:SS
1557863573 converts to Tuesday May 14, 2019 21:52:53 (pm) in time zone Europe/Amsterdam (CEST)
1557866394 converts to Tuesday May 14, 2019 22:39:54 (pm) in time zone Europe/Amsterdam (CEST)
#!/bin/bash
set -x
A=1557863573... (4 Replies)
Discussion started by: abhaydas
4 Replies
2. Fedora
I have a script which is printing date in below format while writing the logs.
theDate=`date +"%m%d%Y"`
theTime=`date +"%H%M%S"`
echo $theDate $theTime
How can i find out difference current time and above format. Appreciate your help. (6 Replies)
Discussion started by: srikanth38
6 Replies
3. UNIX for Advanced & Expert Users
Hello,
I have a question please,
How could I get ALL update dates and hours of a file ?
For example:
I modified a file on 09/04/2014 at 7:am for the first time. Then, I modified again the same file on 09/04/2014 at 9 am and finally, I modified the same file again on 10/04/2014 at... (3 Replies)
Discussion started by: nurinolo
3 Replies
4. Shell Programming and Scripting
Hi Friends,
I have a file that has the contents like below:
file1.txt
5,13/07/2013 23:25:25,14/07/2013 19:40:21
5,13/07/2013 23:25:25,14/07/2013 19:40:43
5,12/07/2013 23:50:50,13/07/2013 20:30:26
5,12/07/2013 23:20:24,13/07/2013 19:40:53
60,14/07/2013 00:00:00,14/07/2013 23:00:39... (5 Replies)
Discussion started by: vsachan
5 Replies
5. Shell Programming and Scripting
Hi all,
I know this may have already been asked but hey ho...
i have two dates in the 'yyyy-mm-dd hh:mm:ss' format.
'2009-01-03 01:00:00'
'2009-04-05 00:00:00'
How can i, in shell script determine their differences?
Please note, the time may not be available, so please suggest both... (4 Replies)
Discussion started by: muay_tb
4 Replies
6. Shell Programming and Scripting
Hello friends,
I am looking for a script or method that can display all the dates between any 2 given dates.
Input:
Date 1
290109
Date 2
010209
Output:
300109
310109
Please help me. Thanks. :):confused: (2 Replies)
Discussion started by: frozensmilz
2 Replies
7. Shell Programming and Scripting
Hi all.
My question may seems to be similar to one that already been here. But i need a little other solution.
I have two dates in format dd/mm/yyyy. I need to find number of days between them. I need to do it in bash script.
I am running on Solaris machine and have cutted 'date' command version... (1 Reply)
Discussion started by: kukuruku
1 Replies
8. Shell Programming and Scripting
Hi there,
I am trying to find out a way to calculate how many hours are between 2 dates but from a specific time range, actually working hours (Monday to Friday 09:00 - 18:00).
What I mean is for example
date1 = Monday 21 July 2008 22:00:00 so in python 2008-07-21 22:00:00
date2 = Wednesday... (5 Replies)
Discussion started by: sickboy
5 Replies
9. Shell Programming and Scripting
Hi experts,
I am reading two log files and passing dates as output to a txt file.
Code is given below:
echo "Start Time:" >> Report.txt
cat start.log | while read LINE1
do
echo $DATE1 >> Report.txt
done
echo "End Time:" >> Report.txt
cat end.log | while read LINE2
... (7 Replies)
Discussion started by: Sreejith_VK
7 Replies
10. Shell Programming and Scripting
Hi All,
Wish you a Happy New year...
I have to find the difference between two dates, the result should be the number of days. I have seen the "datecalc" function. Its good, can I have any other alternative.
Thanks in Advance
Raju (4 Replies)
Discussion started by: rajus19
4 Replies