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

2016-08-31 Thread Erik Soderquist
On Wed, Aug 31, 2016 at 4:17 PM, cyg Simple wrote: > > In other words, don't trust a default Exactly! -- Erik -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://c

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

2016-08-31 Thread cyg Simple
On 8/31/2016 11:23 AM, Erik Soderquist wrote: > On Wed, Aug 31, 2016 at 10:45 AM, Eric Blake wrote: >> So, the answer to your question is determined by what your locale thinks >> is the appropriate representation; and I have no control over whether >> Windows' locale defaults will match glibc's loc

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

2016-08-31 Thread Corinna Vinschen
On Aug 31 15:23, Schwarz, Konrad wrote: > > -Original Message- > > > > 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 >

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

2016-08-31 Thread Erik Soderquist
On Wed, Aug 31, 2016 at 10:45 AM, Eric Blake wrote: > So, the answer to your question is determined by what your locale thinks > is the appropriate representation; and I have no control over whether > Windows' locale defaults will match glibc's locale defaults for en_US or > any other locale outsid

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

2016-08-31 Thread Schwarz, Konrad
> -Original Message- > > > 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,

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

2016-08-31 Thread Brian Inglis
On 2016-08-31 07:04, Frank Farance wrote: On 2016-08-31 08:09, Markus Hoenicka wrote: At 2016-08-31 13:41, Schwarz, Konrad was heard to say: 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.

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

2016-08-31 Thread Corinna Vinschen
On Aug 31 09:36, Eric Blake wrote: > On 08/31/2016 08:04 AM, Frank Farance wrote: > > On 2016-08-31 08:09, Markus Hoenicka wrote: > >> At 2016-08-31 13:41, Schwarz, Konrad was heard to say: > >>> Sorry for the previous incomplete mail. > >>> > >>> So my problem is that date(1) outputs AM/PM style d

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

2016-08-31 Thread Eric Blake
On 08/31/2016 09:36 AM, Eric Blake wrote: > Not necessarily. ls hardcodes its default representation for files > younger than 6 months to: > > "%b %e %H:%M" > > while date hardcodes its default representation to: > > nl_langinfo(_DATE_FMT) > Except that I just tested, and nl_langinfo(_DATE_F

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

2016-08-31 Thread Eric Blake
On 08/31/2016 08:04 AM, Frank Farance wrote: > On 2016-08-31 08:09, Markus Hoenicka wrote: >> At 2016-08-31 13:41, Schwarz, Konrad was heard to say: >>> 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. >>>

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

2016-08-31 Thread Corinna Vinschen
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

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

2016-08-31 Thread Schwarz, Konrad
> -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- > >

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

2016-08-31 Thread Frank Farance
On 2016-08-31 08:09, Markus Hoenicka wrote: At 2016-08-31 13:41, Schwarz, Konrad was heard to say: 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 2

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

2016-08-31 Thread Marco Atzeri
On 31/08/2016 14:09, Markus Hoenicka wrote: At 2016-08-31 13:41, Schwarz, Konrad was heard to say: 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 2

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

2016-08-31 Thread Markus Hoenicka
At 2016-08-31 13:41, Schwarz, Konrad was heard to say: 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

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

2016-08-31 Thread Schwarz, Konrad
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 $LAN