"Christopher J. Madsen" <[EMAIL PROTECTED]> writes:

> Attached is a patch against LWP 5.79 to allow File::Listing to
> interpret the output of GNU ls's --full-time option.  This allows you
> to get timestamps accurate to the second, instead of the minute-based
> ones you get with a normal "ls -l".

The patch did not apply here.  Are you patching from a pristine 5.79?

[EMAIL PROTECTED] lwp5]$ patch -p0 <full-time.patch
patching file lib/File/Listing.pm
Hunk #2 FAILED at 372.
Hunk #3 FAILED at 1.
Hunk #4 FAILED at 84.
3 out of 4 hunks FAILED -- saving rejects to file lib/File/Listing.pm.rej

Anyway, this is how --full-time comes out here (Redhat 9).  It does
not appear to be the same format you try to parse.

[EMAIL PROTECTED] lwp5]$ ls -l --full-time
total 368
-rw-rw-r--    1 gisle    gisle        3800 2004-04-07 12:44:47.000000000 +0200 AUTHORS
drwxrwxr-x    3 gisle    gisle        4096 2004-06-14 14:59:56.000000000 +0200 bin
drwxrwxr-x    7 gisle    gisle        4096 2004-06-14 14:59:58.000000000 +0200 blib
-rw-rw-r--    1 gisle    gisle       83867 2004-06-14 19:30:48.000000000 +0200 Changes

[EMAIL PROTECTED] lwp5]$ ls --version
ls (coreutils) 4.5.3
Written by Richard Stallman and David MacKenzie.

Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Regards,
Gisle


> I believe it also handles BSD ls's -T option, but I don't have a BSD
> system to test.  I'm just working off the OpenBSD manpage.
> 
> The new time formats are recognized automatically; you just call
> parse_dir like you normally would.

Reply via email to