![]() |
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 |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Compare file time | pdr302 | Shell Programming and Scripting | 1 | 11-01-2007 07:14 PM |
| Compare Date And Time | Jamil Qadir | UNIX for Dummies Questions & Answers | 5 | 01-10-2007 11:22 AM |
| compare update time of files | dorilevy | UNIX for Dummies Questions & Answers | 8 | 05-27-2003 10:48 AM |
| compare files acess time | AkumaTay | UNIX for Dummies Questions & Answers | 2 | 05-19-2002 04:02 PM |
| Rolling back time | Cameron | UNIX for Dummies Questions & Answers | 5 | 03-26-2002 09:31 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Need to get 4 Hrs back time and compare with successive time
Hi all,
I am working on a script in which i need to get 4 hrs back time from the current time which i got from this perl function : `perl -e 'print localtime(time() - 14400) . "\n"'` now i need to get this in a loop and increment that time by 15 minutes i.e i=900(=15minutes) `perl -e 'print localtime(time() - 14400+$i) . "\n"'` I do not know perl much and the above code does not work . i have to compare time from a table column from a database which has a listing afer every 15 minutes . so basically i hv to get a loop in which i can use this function and compare the time which is exactly after every 15 minutes. there is a new lisitng in the Db after every 15 minutes and i need to check the time gap. How can I compare time from this perl function or if there is any other script it will be really appreciated . Thanks, Manik |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|