The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Processing a log file based on date/time input and the date/time on the log file
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Processing a log file based on date/time input and the date/time on the log file
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
4
(
permalink
)
03-16-2008
Franklin52
Moderator
Join Date: Feb 2007
Posts: 4,333
It should be something like:
Code:
date --date "2008-03-15 11:40 5 min ago" +%F==%I:%M
But what is the reason for using this format "+%F==%I:%M"?
You can get the epoch time of 5 minutes ago with:
Code:
date --date "2008-03-15 11:40 5 min ago" +%s
Regards
Franklin52
View Public Profile
Find all posts by Franklin52
Find Franklin52's past nominations received
Find Franklin52's present nominations given