Score:1

timedatectl set-time X days

eh flag
timedatectl set-time 2021-01-05

The above code works fine but how to add +x days instead for the exact time through the command line.

Score:1
cn flag

The timedatectl command only accepts specific times. However, you can get around this by using date to generate the time:

$ date
Thu Dec 23 03:00:18 PM EET 2021
$ date -d 'now + 5 days'
Tue Dec 28 03:00:18 PM EET 2021
$ date -d 'now + 5 days' +%F
2021-12-28

So to set the date to something 5 days in the future, use:

timedatectl set-time $(date -d "now + 5 days" +%F)
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.