From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QLHKe-00077A-1T for garchives@archives.gentoo.org; Sat, 14 May 2011 16:04:44 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 643851C0BF; Sat, 14 May 2011 16:01:26 +0000 (UTC) Received: from smtpout.karoo.kcom.com (smtpout.karoo.kcom.com [212.50.160.34]) by pigeon.gentoo.org (Postfix) with ESMTP id 0CB221C0BF for ; Sat, 14 May 2011 16:01:25 +0000 (UTC) X-IronPort-AV: E=Sophos;i="4.64,368,1301871600"; d="scan'208";a="768940559" Received: from 213-152-39-90.dsl.eclipse.net.uk (HELO compaq.stroller.uk.eu.org) ([213.152.39.90]) by smtpout.karoo.kcom.com with ESMTP; 14 May 2011 17:01:25 +0100 Received: from [192.168.1.101] (unknown [192.168.1.101]) by compaq.stroller.uk.eu.org (Postfix) with ESMTP id 16760AA2FF for ; Sat, 14 May 2011 16:59:57 +0100 (BST) Content-Type: text/plain; charset=us-ascii Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 (Apple Message framework v1084) Subject: Re: [gentoo-user] Re: How's the openrc update going for everyone? From: Stroller In-Reply-To: <201105132032.04329.michaelkintzios@gmail.com> Date: Sat, 14 May 2011 17:01:19 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <161BB4DF-AF60-4B13-A3E3-72725D7DED17@stellar.eclipse.co.uk> References: <4DC9B435.9010308@gmail.com> <201105122041.59596.peter@humphrey.ukfsn.org> <201105132032.04329.michaelkintzios@gmail.com> To: gentoo-user@lists.gentoo.org X-Mailer: Apple Mail (2.1084) X-Archives-Salt: X-Archives-Hash: 8eb4dee8afb76645f9636a9085b5d4e7 On 13/5/2011, at 8:32pm, Mick wrote: >>> ... >>> $ date +"%l:%M%P" >>> 8:39 >>>=20 >>> That's the wall-clock time (p.m.) in my local time-zone. What = Americans >>> call daylight savings time, though how they imagine any time is = saved I >>> don't know. >>=20 >> =46rom `man date`: >>=20 >> %l hour ( 1..12) >>=20 >> ... >> %M minute (00..59) >> ... >>=20 >> %p locale's equivalent of either AM or PM; blank if not = known >>=20 >> %P like %p, but lower case >>=20 >> I'd be curious to compare with the output of `date +"%r"` on your = system, >> but you probably actually want to set: >>=20 >> LANG=3D"en_GB.UTF-8" >> LC_TIME=3D"POSIX" >>=20 >> in order to get the correct results. >=20 > Hmm ... I've just set my locale as you suggest and get: >=20 > $ date +"%l:%M%P" > 8:29 >=20 > (it's 20:29 right now) >=20 > and=20 >=20 > $ date +"%r" > 08:31:28 Sorry, didn't see this message before sending my reply to your previous = one.=20 Yes, it should say "pm" at the end, but did you reboot before checking? I believe these are sourced at startup in a way that renders this = necessary. You *may* be able to `export LC_TIME=3D"POSIX"` in a shell, but I won't = swear to it. Stroller.