Currently, my hardware clock returns the date/time (hwclock --show) like this:
Sat 28 Jul 2018 08:47:47 PM BST .659124 seconds
And date returns:
Sat Jul 28 21:23:13 BST 2018
I'd like to change the time of the hardware clock to 24-hour format and the format of date to match the hardware clock's date/time format.
I have searched high and low but haven't found thorough documentation on managing date and time on Linux systems (i.e., short, medium and long date, regional formats such as DD-MM-YYYY or DD/MM/YY), especially in a command line environment.
I have man'ed hwclock and date. They don't help. I also know that there are a set of similar questions that have been asked before. I have looked at them and they don't help either.
Can someone help with regards to my specific question noted above or point me to some thorough documentation with a discussion on how to deal with multiple date/time scenarios for different regions in a command line environment? Thanks in advance.