This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Different representations of time in ls -l and date(1)


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)
> > 
> > > -----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?
> > 
> > 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.

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

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

Attachment: signature.asc
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]