Reputation: 2696
we are using hp-ux servers we need to get 2 hours ago datetime value in bash shell script ?
how can i do that any experiences ?
Upvotes: 4
Views: 8601
Reputation: 36259
date -d -2hours; date --version
Thu Apr 14 02:38:08 CEST 2011
date (GNU coreutils) 7.4
Upvotes: 7