I have two Linux (CentOS 6.0) machines over here and I need to add (or remove) 5 seconds to the current date time. In the end, both my machines would have a gap of 5 seconds (one with the right time and the other one with 5 seconds more or less).
I know I can change the date with this command:
date -s "DD MMM YYYY HH:MM:SS"
but I need to be precise and it will be hard for me to run the command at the right time.
So I'd like to know if there is a way in general to add 5 seconds to the current time, a bit like when you choose your time zone compared to Greenwich (+5 hours in my case).