Hi there,

I am to set a custom LC_TIME

LC_TIME='en_GB.UTF-8' /usr/bin/krusader

from:
https://www.ibm.com/docs/en/aix/7.1?topic=ff-lc-time-category-locale-definition-source-file-format

I am after yyyy mm dd  HH:MM  (24 hour format)

For example:
    2025-06-10 23:51

ChatGPT is your friend for such questions...

---
If you want your system or scripts to always show time like that via LC_TIME, 
you need a custom locale (more advanced). Here’s a quick guide:
🔧 1. Copy and edit a locale source

cp /usr/share/i18n/locales/en_US ~/my_locale

Edit ~/my_locale, look for:

d_t_fmt   "<this line>"

Replace it with:

d_t_fmt   "%Y %m %d  %H:%M"

You can also edit:

d_fmt     "%Y %m %d"
t_fmt     "%H:%M"

🛠️ 2. Compile your locale

localedef -i ~/my_locale -f UTF-8 my_custom.UTF-8

▶️ 3. Use it

LC_TIME=my_custom.UTF-8 date

---

Good luck...

Iosif Fettich



Hi Iosif,

I am looking on how to do this on only this command line.
  LC_TIME='en_GB.UTF-8' /usr/bin/krusader

what do I modify 'en_GB.UTF-8' to get "%Y %m %d  %H:%M"
in krusader?
  LC_TIME='%Y %m %d  %H:%M' /usr/bin/krusader

does not work

-T
--
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to