bug-coreutils
[Top][All Lists]
Advanced

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

Re: Using the command `date +%r` returns incorrect format


From: Eric Blake
Subject: Re: Using the command `date +%r` returns incorrect format
Date: Tue, 02 Aug 2005 07:19:55 -0600
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Martin Freebody on 8/2/2005 2:31 AM:
> BUG: Using the command `date +%r` returns incorrect format
> 
> Version:           3.3.0 (using KDE 3.3.0, SuSE)
> Compiler:         gcc version 3.3.4 (pre 3.3.5 20040809)
> OS:                  Linux (i686) release 2.6.8-24-smp
> 
> Using the command `date +%r` should give me for example "2:39:00 PM" but
> on my machine it returns "02:39:00". [time is set correctly as %R
> returns "14:39"].

What is your locale?  And what does `LC_ALL=C date +%r' print?  This is a
feature of strftime under locales.

- --
Life is short - so eat dessert first!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFC73L684KuGfSFAYARAs2QAJ9pFESQl0ztEXLC2cjy7eYYQfpakQCgkhhn
95oZvmlbky+g7Cw2HgE5+oU=
=rNGx
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]