From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 109935 invoked by alias); 31 Aug 2016 14:30:21 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 109863 invoked by uid 89); 31 Aug 2016 14:30:15 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-101.5 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=experimentation, inconsistency, era, cygwin@cygwin.com X-HELO: drew.franken.de Received: from mail-n.franken.de (HELO drew.franken.de) (193.175.24.27) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 31 Aug 2016 14:30:05 +0000 Received: from aqua.hirmke.de (aquarius.franken.de [193.175.24.89]) (Authenticated sender: aquarius) by mail-n.franken.de (Postfix) with ESMTPSA id 476B8721E281C for ; Wed, 31 Aug 2016 16:30:02 +0200 (CEST) Received: from calimero.vinschen.de (calimero.vinschen.de [192.168.129.6]) by aqua.hirmke.de (Postfix) with ESMTP id 85EA45E0378 for ; Wed, 31 Aug 2016 16:30:01 +0200 (CEST) Received: by calimero.vinschen.de (Postfix, from userid 500) id 7A729A8059C; Wed, 31 Aug 2016 16:30:01 +0200 (CEST) Date: Wed, 31 Aug 2016 15:01:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: Different representations of time in ls -l and date(1) Message-ID: <20160831143001.GA22389@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="8t9RHnE3ZwKMSgU+" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.2 (2016-07-01) X-SW-Source: 2016-08/txt/msg00633.txt.bz2 --8t9RHnE3ZwKMSgU+ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1838 On Aug 31 14:23, Schwarz, Konrad wrote: > > -----Original Message----- > > From: Schwarz, Konrad (CT RDA ITP SES-DE) > > Sent: Wednesday, August 31, 2016 2:51 PM > > To: 'cygwin@cygwin.com' > > Subject: RE: Different representations of time in ls -l and date(1) > >=20 > > > -----Original Message----- > > > From: Schwarz, Konrad (CT RDA ITP SES-DE) > > > Sent: Wednesday, August 31, 2016 1:42 PM > > > To: 'cygwin@cygwin.com' > > > Subject: RE: Different representations of time in ls -l and date(1) > > > > > > Sorry for the previous incomplete mail. > > > > > > So my problem is that date(1) outputs AM/PM style dates, whereas ls - > > l > > > uses 24 hour times. > > > > > > $ ls -l rtos_benchmark.lst > > > -rwxr-xr-x+ 1 mchn1350 Domain Users 263 Aug 31 13:14 > > > rtos_benchmark.lst* > > > $ date > > > Wed, Aug 31, 2016 1:39:35 PM > > > $ echo $LC_TIME > > > > > > $ echo $LANG > > > en_US.UTF-8 > > > > > > Shouldn't they be using the same format? > >=20 > > Further experimentation shows that they > > do indeed use the same format in the POSIX locale, (LANG=3DC), as > > required by that standard. > >=20 > > However, I still think it is an ugly inconsistency for them to differ > > in the en_US.UTF-8 locale (which I assume is the default locale in > > Cygwin). >=20 > Still further investigation shows that on SUSE Linux, with LANG=3Den_US.U= TF-8, > both of these utilities consistently, if counter-intuitively, display 24 = hour time. >=20 > So I think the problem lies in Cygwin's locale database. If so, it would be Window's locale database. Apart from information not available on Windows (era and messages info) all other locale info is fetched from Windows. Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --8t9RHnE3ZwKMSgU+ Content-Type: application/pgp-signature; name="signature.asc" Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXxunpAAoJEPU2Bp2uRE+gYzwP/05YzdTN4Q/2AzDfclZy6snd ic3sgBQhOX+TTzrgHBAZ8dVECH6WGduN7akkyN0CB2N/nWUYsnR3GOceq6mDT0ez Cl+0H4boyZAd/8ygVUhJGh0jumS94THWe6e1pK5zndAXMIt1bIZMYLwcGTXhZH0L lsT+S3+8UOiH6L49mWi8BO/iEWEtgR3ZN8d6yYhc9E4QZEJSU/7HKvQXYDEuXoTL XbOCWKeKnp7LTSDjYNhWANJ0L0YpxeqvJuDBOuWK7SpLtSPPF36LQOYLoiDQMryM lgGjwugIN3HeAyVDh1Qny0XFNRVuHjAp3s1wIYgLg3vEfyse/fGfjgZGwPv3DOQN Y/Lbmcz7Ihq8JhD+m17PMjc2Nf/4wcf8MEBm97fS8Gentc5cHwd/LISh0tp112kN sliMaMfANjhHYt9j6dp6I2dHM2k/8EcvvbyuKnkBA3dJu38Qqi1htPXkt3AgJWsd M1FvDcrkx+cDFCX831Sv/FjW2QKQHxLsGeE732Cr+xw+R/THOZfN0EkzB05+rniP rb798IbL22jwT2wbdDTgTNME4WSHxoQMOXVIHIHT08uaqmY+ii/Jvgyqrrpu7tGi 5yS6DiJCW5D7e/mkzNp6cIz6qaFi7cfmfjTAfRxMRr1DpNA6+SLkIkaZNhuDabsB GXPAH1pPY2MpIj8qZ5AN =q92i -----END PGP SIGNATURE----- --8t9RHnE3ZwKMSgU+--