↧
Answer by ti7 for Set relative time using command line
Recent date can now set the date relatively with natural language!Here is an example using GNU coreutils 8.23# dateFri Oct 5 16:24:25 UTC 2018# date --set "10 minutes ago"Fri Oct 5 16:14:25 UTC 2018#...
View ArticleAnswer by Peter.O for Set relative time using command line
To set the date, you must log in as root (or su/sudo...) echo "Time 1 hour ago ... $(date -d "$(date +%F\ %T) 1 hour ago")"echo "Time now .......... $(date +%F\ %T)"echo "Time in 1 hour .... $(date -d...
View ArticleAnswer by Dr Kitty for Set relative time using command line
You can change your time zone by doing # dpkg-reconfigure tzdata. I'm not sure how you would change the time by an arbitrary value, though.
View ArticleSet relative time using command line
Using something similar to the date command, is it possible to set the date and time relative to 'now'?So instead of something like date +%T -s "10:13:13" something like date -s +1h or something similar
View Article