Re: need help with LC_TIme

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux