time/date manipulation in Unix
I'm trying to find a way to get date/time from actual date + or - a given number of minutes or days? Can you help?
Thanks in advance
Web Development
I'm trying to find a way to get date/time from actual date + or - a given number of minutes or days? Can you help?
Thanks in advance
by ssethi
Followings are the examples to show you how you can manipulate date and/or time doing mathmatical calculations on the day, month, or year
echo "following command shows date and time"
%date '+DATE: %m/%d/%y%nTIME:%H:%M:%S'
#DATE: 08/01/76
#TIME: 14:45:05
echo "following command sets the current time"
date 1234.56
#sets the current time to 12:34:56.
This discussion is closed to new replies.
Sort by Trending