[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using the command `date +%r` returns incorrect format
From: |
Andreas Schwab |
Subject: |
Re: Using the command `date +%r` returns incorrect format |
Date: |
Tue, 02 Aug 2005 15:26:11 +0200 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux) |
Martin Freebody <address@hidden> writes:
> Using the command `date +%r` should give me for example "2:39:00 PM" but
> on my machine it returns "02:39:00".
You are apparently using a locale that does not have a notion of an AM/PM
indicator.
$ LC_ALL=C date +%r
03:24:58 PM
$ LC_ALL=de_DE.utf8 date +%r
03:24:58
$ LC_ALL=en_US.utf8 date +%r
03:24:58 PM
Andreas.
--
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."