Get Time and Then Set Date and Time
· Shell & text
Get the date
# date +%T
shows hh:mm:ss
Set the date/time
# date 10102248
sets the date and time to Oct 10, 10:48 pm
# date 2251.34
sets the time to 10 hours 51 minutes 34 seconds pm
Display Date
# date
Tue Oct 10 22:49:55 KST 2006
# date '+%h %d, 20%y'
Oct 10, 2006