![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| pc 0.3-2008-04-02 (Default branch) | iBot | Software Releases - RSS News | 0 | 04-02-2008 11:40 PM |
| Rudix 2008 | iBot | UNIX and Linux RSS News | 0 | 03-25-2008 02:20 AM |
| Project Management Software - Copper 2008 2008 (Corporate branch) | iBot | Software Releases - RSS News | 0 | 03-12-2008 07:00 PM |
| The Top Ten Cybersecurity Threats for 2008 | iBot | Complex Event Processing RSS News | 0 | 01-05-2008 01:40 PM |
| Welcome to 2008! Want to know what you?ve gotten into? | iBot | Complex Event Processing RSS News | 0 | 01-03-2008 11:40 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
subtracting Tue, Feb 26, 2008 01:38:25 AM from Mon, Feb 25, 2008 09:30:03 PM
Hi,
Please help me out in creating a script which will subtract Tue, Feb 26, 2008 01:38:25 AM from Mon, Feb 25, 2008 09:30:03 PM and will give me out put in the format hh:mm:ss. I tried datecalc.It doesnt work for this format. |
|
|||||
|
I thought you said the problem was solved. See Time Between Dates - The UNIX Forums
Please do not open multiple threads for the same problem. You already have opened 3 other threads. Break the rule once more and you will earn a temporary ban. |
|
|||||
|
First check whether you can see the epoch time for the below command:
Code:
$ date +%s -d "Feb 26, 2008 01:38:25 AM" 1203970105 try Code:
diff_sec=`expr $D1 - $D2` Code:
((diff_sec=D1-D2)) |
![]() |
| Bookmarks |
| Tags |
| linux |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|