Is there any way to force 24-hour time in my locale (for example, 14:00) instead of 12-hour time (2:00 PM)?

I use the en_US locale with a UTF-8 character set on Arch Linux, but this shouldn't matter, I think.

link|improve this question
1  
What commands do you use that display a 12-hour time ? – jlliagre Aug 24 '11 at 9:27
1  
@jlliagre: strftime("%c"), "preferred date and time representation for the current locale", returns a 12-hour time value for en_US. – grawity Aug 24 '11 at 10:03
feedback

1 Answer

up vote 2 down vote accepted

Locales can be set for various components separately, so you can set LC_TIME to either "en_GB.utf-8" (Great Britain) or "C" (no locale at all).

(Don't forget /etc/locale.gen.)

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.