Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: How's the openrc update going for everyone?
Date: Fri, 13 May 2011 19:32:50
Message-Id: 201105132032.04329.michaelkintzios@gmail.com
In Reply to: Re: [gentoo-user] Re: How's the openrc update going for everyone? by Stroller
1 On Thursday 12 May 2011 22:48:04 Stroller wrote:
2 > On 12/5/2011, at 8:41pm, Peter Humphrey wrote:
3 > > On Thursday 12 May 2011 18:06:27 Stroller wrote:
4 > >> Could you possibly post the output of `date +"%l:%M%P"`?
5 > >>
6 > >> In doing so you'd be doing me a favour.
7 > >
8 > > $ date +"%l:%M%P"
9 > > 8:39
10 > >
11 > > That's the wall-clock time (p.m.) in my local time-zone. What Americans
12 > > call daylight savings time, though how they imagine any time is saved I
13 > > don't know.
14 >
15 > From `man date`:
16 >
17 > %l hour ( 1..12)
18 >
19 > ...
20 > %M minute (00..59)
21 > ...
22 >
23 > %p locale's equivalent of either AM or PM; blank if not known
24 >
25 > %P like %p, but lower case
26 >
27 > I'd be curious to compare with the output of `date +"%r"` on your system,
28 > but you probably actually want to set:
29 >
30 > LANG="en_GB.UTF-8"
31 > LC_TIME="POSIX"
32 >
33 > in order to get the correct results.
34
35 Hmm ... I've just set my locale as you suggest and get:
36
37 $ date +"%l:%M%P"
38 8:29
39
40 (it's 20:29 right now)
41
42 and
43
44 $ date +"%r"
45 08:31:28
46
47 Shouldn't the former say pm at the end?
48 --
49 Regards,
50 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] Re: How's the openrc update going for everyone? Stroller <stroller@××××××××××××××××××.uk>