help-debbugs
[Top][All Lists]
Advanced

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

bug#35078: Possible bug in the date command, to do with %p


From: Nicholas Joll
Subject: bug#35078: Possible bug in the date command, to do with %p
Date: Tue, 2 Apr 2019 09:14:45 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1

Package: date
Version: GNU coreutils 8.28

The manual for 'date' includes this:

       %p     locale's equivalent of either AM or PM; blank if not known

       %P     like %p, but lower case

But on my system:

     $  date +%p
    am
    $  date +%P
    am

That is: it seems impossible to get a capitalised 'AM' or 'PM'.

Might this be a problem with my locale? Here is how my locale is set:

    $  locale
    LANG=en_GB.UTF-8
    LANGUAGE=en_GB:en
    LC_CTYPE=en_GB.UTF-8
    LC_NUMERIC=en_GB.UTF-8
    LC_TIME=en_GB.UTF-8
    LC_COLLATE="en_GB.UTF-8"
    LC_MONETARY=en_GB.UTF-8
    LC_MESSAGES="en_GB.UTF-8"
    LC_PAPER=en_GB.UTF-8
    LC_NAME=en_GB.UTF-8
    LC_ADDRESS=en_GB.UTF-8
    LC_TELEPHONE=en_GB.UTF-8
    LC_MEASUREMENT=en_GB.UTF-8
    LC_IDENTIFICATION=en_GB.UTF-8
    LC_ALL=


My OS: (GNU-)Linux Mint 19.1 x64 Cinnamon

Yours,


Nicholas

Attachment: 0x63EC0B0B39DEE1CD.asc
Description: application/pgp-keys


reply via email to

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