This locale file can be included in your system locales. It merges Australian English locale with some more sane date formats.
The time and dates displayed for various commands will then be in new formats.
Changes date and time formats from:
Tue 1 Dec 23:19:12 AEDT 2015Tue 01 Dec 2015 23:19:12 AEDT01/12/1511:19:12 pm
to:
Tue 01-Dec-2015 23:19:12 AEDT2015-12-01T02:45:31 AEST2015-12-0123:19:12
Install the file to /usr/share/i18n/locales/en_KRAYON
sudo install -m0644 -oroot -groot usr-share-i18n-locales-en_KRAYON /usr/share/i18n/locales/en_KRAYONAdd it to your /etc/locale.gen
cat <<EOF |sudo tee -a /etc/locale.gen
en_KRAYON ISO-8859-1
en_KRAYON.UTF-8 UTF-8
EOFRegenerate your locales
sudo locale-genCan instead store it for local user, and set PATH_LOCALE, see:
Set your environment variable LC_TIME to en_KRAYON. You can also add this
to your .bashrc, bash_profile, /etc/bash.bashrc, /etc/profile etc
export LC_TIME=en_KRAYONThese are other things to add to your .bashrc etc to keep you sane:
# libc's date format seems to default to "Mth DD YYYY" / "Mth DD HH:MM"
# ... this ensures ls -la shows the LOGICAL "YYYY-MM-DD HH:MM"
export TIME_STYLE='long-iso'
# libc's collating (ls sort order) is mixed, we want all dot files together etc
export LC_COLLATE='C'