![]() |
Time >
See also:
2024-12-22 - Lubuntu 24.04.1 LTS ∞
\sudo \dpkg-reconfigure tzdata
2020-06-08 - devuan_beowulf_3.0.0_amd64 ∞
(Devuan)
https://wiki.debian.org/DateTime
NEWDATE=$( \date +%T --date '5 seconds ago' ) NEWDATE=$( \date +%T --date '1 hour' ) \sudo \date +%T --set="$NEWDATE"
This won't work on something like VirtualBox since that date/time are managed through it.
https://rickguyer.com/virtualbox-disable-time-sync-between-host-and-client/
UNTESTED -- To change that, you can disable syncing between the host and guest. See VirtualBox: Disable Virtualbox date/time sync
On Linux, it would be
vboxmanage setextradata <vmname> "VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled" "1"
To re-enable it, apparently you have to edit that VMs configuration XML file to remove the line. Setting it to "0" does not work.
2018-11-11 - devuan_ascii_2.0.0-rc_i386_dvd-1 ∞
(Devuan)
# Change the date and time: \date --set='yyyy-mm-dd hh:mm:ss' # To only change the date: # date --set="yyyy-mm-dd $( \date +%H:%M:%S )" # Store the above-set system time to the hardware clock. \hwclock --systohc
2009-07-19 - Unity Linux 0.99-alpha1 ∞
I just use drakclock
. Probably the same for Mandriva and PCLinuxOS too. No funny screen blanking etc is done for a simple day date change.
I think it reverted itself, so I'll try a clock --hctosys
this time.
2008-03-12 - PCLinuxOS v2007 ∞
Same as 2001-12-21 - Slackware (version not recorded)
2005-08-02 - Debian (version not recorded) ∞
See also Time
date -s 2005-08-02 # set the date: yyyy-mm-dd # yyyymmdd also works. date -s 14:05:0 # set the time: hh:mm:ss (24 hour clock)
2001-12-21 - Slackware (version not recorded) ∞
date -s 20011221 # set the date: yyyymmdd clock --set --date 06:00:00 --localtime # set the time clock --hctosys # save the system time to the hardware clock # This may blank your screen and/or trigger # your screen saver, locking your screen.
Resources ∞
Last updated 2024-12-22 at 16:53:02
restored from an archive due to a system hiccup
figured shit out again