From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 90786 invoked by alias); 31 Aug 2016 14:23:50 -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 90777 invoked by uid 89); 31 Aug 2016 14:23:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.9 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 spammy=HContent-Language:de-DE, H*r:169.254.2, H*MI:siemens, H*RU:192.129.41.35 X-HELO: lizzard.sbs.de Received: from lizzard.sbs.de (HELO lizzard.sbs.de) (194.138.37.39) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 31 Aug 2016 14:23:39 +0000 Received: from mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by lizzard.sbs.de (8.15.2/8.15.2) with ESMTPS id u7VENaI2022474 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 31 Aug 2016 16:23:37 +0200 Received: from DEFTHW99ERJMSX.ww902.siemens.net (defthw99erjmsx.ww902.siemens.net [139.22.70.135]) by mail1.sbs.de (8.15.2/8.15.2) with ESMTPS id u7VENaM4016682 (version=TLSv1 cipher=AES256-SHA bits=256 verify=FAIL) for ; Wed, 31 Aug 2016 16:23:36 +0200 Received: from DEFTHW99ERAMSX.ww902.siemens.net (139.22.70.72) by DEFTHW99ERJMSX.ww902.siemens.net (139.22.70.135) with Microsoft SMTP Server (TLS) id 14.3.301.0; Wed, 31 Aug 2016 16:23:36 +0200 Received: from DEFTHW99EJ1MSX.ww902.siemens.net ([169.254.2.239]) by DEFTHW99ERAMSX.ww902.siemens.net ([139.22.70.72]) with mapi id 14.03.0301.000; Wed, 31 Aug 2016 16:23:35 +0200 From: "Schwarz, Konrad" To: "cygwin@cygwin.com" Subject: RE: Different representations of time in ls -l and date(1) Date: Wed, 31 Aug 2016 14:48:00 -0000 Message-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-SW-Source: 2016-08/txt/msg00632.txt.bz2 > -----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). Still further investigation shows that on SUSE Linux, with LANG=3Den_US.UTF= -8, both of these utilities consistently, if counter-intuitively, display 24 ho= ur time. So I think the problem lies in Cygwin's locale database. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple