For us command line users the date command has lots of parameters, and bash can do aliases to save a date and/or time format you like when you get it just right. The info date command get anyone interested started. On Sat, 14 Sep 2019, matthew dyer via arch-general wrote:
Date: Sat, 14 Sep 2019 13:56:06 From: matthew dyer via arch-general <arch-general@archlinux.org> To: Arch General <arch-general@archlinux.org> Cc: matthew dyer <ilovecountrymusic483@gmail.com> Subject: Re: [arch-general] Time and date in 24 hour time can this be fixed?
Thanks. Will give this a try.
Matthew
On Sep 14, 2019, at 1:42 PM, Ralf Mardorf via arch-general <arch-general@archlinux.org> wrote:
On Sat, 14 Sep 2019 11:56:46 -0400, Matthew Dyer via arch-general wrote:
I am getting a sintax error when runn locale(1). Locale is set to en_US.UTF-8 in /etc/locale.gebn. At least it is uncommeted. Should I rerun the locale.-gen and see if that helps.
Hi Matthew,
if I were you I would replace /etc/locale.gen by /etc/locale.gen.pacnew, uncomment the desired language/s, just in case also take a look at /etc/locale.conf and then run 'sudo locale-gen'.
To get back 24 hour format (that's what I prefer over 12 hour format), I restarted my machine, https://wiki.archlinux.org/index.php/Locale#LC_TIME:_date_and_time_format .
You might not necessarily need to restart the machine, but it doesn't harm. The output of 'localectl status' does not display the real status!
However, running 'locale; echo $?; locale -a; echo $?' must not cause a syntax error, 'locale' must always return exit status '0' ;).
Regards, Ralf
--