1 |
On 12/5/2011, at 8:41pm, Peter Humphrey wrote: |
2 |
|
3 |
> On Thursday 12 May 2011 18:06:27 Stroller wrote: |
4 |
> |
5 |
>> Could you possibly post the output of `date +"%l:%M%P"`? |
6 |
>> |
7 |
>> In doing so you'd be doing me a favour. |
8 |
> |
9 |
> $ date +"%l:%M%P" |
10 |
> 8:39 |
11 |
> |
12 |
> That's the wall-clock time (p.m.) in my local time-zone. What Americans call |
13 |
> daylight savings time, though how they imagine any time is saved I 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, but you probably actually want to set: |
28 |
|
29 |
LANG="en_GB.UTF-8" |
30 |
LC_TIME="POSIX" |
31 |
|
32 |
in order to get the correct results. |
33 |
|
34 |
Stroller. |