You can use date -s or –set=STRING option to set your system date and time to a custom date-time specified in a string.
date -s or –set=STRING option example:
1 2 3 4 |
## date -s DATESTR or --set=DATESTR options ## just for demo, do not execute below command as ## it may have adverse effect to your system date --set="20020202 20:20" ## sets the current date and time of the system |