[CentOS] Pause time

Mon Apr 19 21:27:57 UTC 2010
Aleksey Tsalolikhin <atsaloli.tech at gmail.com>

2010/4/19 cahit Eyigünlü <cahit.eyigunlu at gmail.com>:
> i want to pause my cent os time and date in a spesific date :D is it
> possible ?

You can set your clock back a minute every minute from cron using the
"date" command.  Try:

     date -s "now - 1 minute"

If that's not good enough, you can write a loop that resets your clock
back a second every second, again using the "date" command.

    while true
    do
           date -s "now - 1 second"
           sleep 1
    done


That should make time appear to stand still at the HH:MM:SS level.

Another possible method is to pause time itself.  However your
computer won't work any more, and will remain frozen without any
changes.

HTH,
Aleksey