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: [1.7] Updated: cygwin-1.7.0-63


On Thu, Nov 5, 2009 at 8:22 PM, Eric Blake <ebb9@byu.net> wrote:

> Yes. ?Read the manual:
>
> $ info ls 'formatting file timestamps'
>
> In particular, --time-style in an alias, or TIME_STYLE in your
> environment, is your friend.

Thanks, Eric.  I tried this but could not get what I wanted:

LTDENA-REISERT:c/Home> ls -al --time-style="posix-long-iso"

-rwx------  1 reisert        Domain Users    3326 2009-10-30 12:51 .XWinrc
-rwx------  1 reisert        Users            663 2009-02-26 10:37 .Xdefaults

From the info link you sent me, it says:

    `posix-STYLE'
          List POSIX-locale timestamps if the `LC_TIME' locale category
          is POSIX, STYLE timestamps otherwise.  For example, the
          `posix-long-iso' style lists timestamps like `Mar 30  2002'
          and `Mar 30 23:45' when in the POSIX locale, and like
          `2002-03-30 23:45' otherwise.

I must not be in a POSIX LOCALE, then.  LC_TIME isn't defined,  nor is LOCALE.

How do I make this work, while maintaining:

    LANG=en_US.UTF-8

- Jim

-- 
Jim Reisert AD1C, <jjreisert@alum.mit.edu>, http://www.ad1c.us

--
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


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