X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:content-type :content-transfer-encoding:mime-version; q=dns; s=default; b=xfv FAuFBn4lDKMl50KXYglDQYikU8FJ4xB4xe2UrPFYSYoTzqnjogQDaP+R2ogpMb3z uHqz9xARBZ2jHOAtiKXKamtctmhlbemrJGtFwM0KPgP36p91yCumRwkyHfPiMg/w SA/BPcJwQfQUpAbwiXAlxU5b0lCIuDhMBhXmaowQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:content-type :content-transfer-encoding:mime-version; s=default; bh=8eNFZbETU VuWbE1nImOrNmabugg=; b=wE/DYcAGM8VHNdY3dhbGSUhgyiZoxAwZFPd66VUbv 5eERBAlNy3XKOlMWPsCCMdCLXyJszM+VgENQg+gnJQyiu+f4SesuclPI1gxIG0Ly Loj7H8JuL1fxkeR0XZ0/iKkz9RndMIWI8esfyW91F5MeYmktYlN2mIaA4jgcnGYo 4s= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 From: "Schwarz, Konrad" To: "cygwin AT cygwin DOT com" Subject: RE: Different representations of time in ls -l and date(1) Date: Wed, 31 Aug 2016 14:23:35 +0000 Message-ID: Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id u7VEO1Mq021682 > -----Original Message----- > From: Schwarz, Konrad (CT RDA ITP SES-DE) > Sent: Wednesday, August 31, 2016 2:51 PM > To: 'cygwin AT cygwin DOT com' > Subject: RE: Different representations of time in ls -l and date(1) > > > -----Original Message----- > > From: Schwarz, Konrad (CT RDA ITP SES-DE) > > Sent: Wednesday, August 31, 2016 1:42 PM > > To: 'cygwin AT cygwin DOT 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? > > Further experimentation shows that they > do indeed use the same format in the POSIX locale, (LANG=C), as > required by that standard. > > 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=en_US.UTF-8, both of these utilities consistently, if counter-intuitively, display 24 hour 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