When I tried to set time with
$(date +%s -d "2022-04-10 12:12:12")
I get the time
2022-04-10 19:12:12
How can I set the time explicit?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityLike this:
date '+%F %T' -d "2022-04-10 12:12:12"
2022-04-10 12:12:12
Check:
man 3 strftime
1649567532
2022-04-10 12:12:12
1649589132: command not found
. What did you actually run?