Discussion Locked

time/date manipulation in Unix

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

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

3 replies

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.