This is the mail archive of the
mailing list for the Cygwin project.
Re: Different representations of time in ls -l and date(1)
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 locale defaults for en_US or
>> any other locale outside of C.
> It is because I have been burned on this (world wide customers) that I
> know explicitly specify the format I want to work with in my scripts
> and disregard whatever the local is.
In other words, don't trust a default to provide the exact
representation needed for your process to work correctly. You cannot
control what a default might return so be specific if you have a
specific format required.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple