emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: vc-cvs-parse-entry


From: martin rudalics
Subject: Re: vc-cvs-parse-entry
Date: Mon, 04 Sep 2006 11:17:18 +0200
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

> I forgot to mention that you can use the --full-time switch to `ls' to
> force it display the full time for all files.

Sorry, I forgot that --full-time needs -l.  ls.exe (and thus dired with
`ls-lisp-use-insert-directory-program' non-nil) gets me:

-rw-rw-rw-   1 user     group        1188 Mon Sep 01 17:45:52 2003 acldef.h
-rw-rw-rw-   1 user     group       15285 Fri Jan 30 18:10:02 2004 alloca.c
                                                     ^^
DIR gets me:

ACLDEF   H           1.188  01.09.03  17:45 acldef.h
ALLOCA   C          15.285  30.01.04  18:10 alloca.c
                                      ^^

Emacs gets me (sorry, it's too tedious to turn off the locales):

(format-time-string
 "%a %b %d %H:%M:%S %Y %Z" (nth 5 (file-attributes "~/src/acldef.h"))) ->
"Mo Sep 01 17:45:52 2003 (MEZ) - Mitteleurop. Sommerzeit"

... "Sommerzeit" == DST

(format-time-string
 "%a %b %d %H:%M:%S %Y %Z" (nth 5 (file-attributes "~/src/acldef.h")) t) ->
"Mo Sep 01 15:45:52 2003 GMT"

(format-time-string
 "%a %b %d %H:%M:%S %Y %Z" (nth 5 (file-attributes "~/src/alloca.c"))) ->
"Fr Jän 30 17:10:02 2004 (MEZ) Mitteleuropäische Zeit"
           ^^
... no DST here

(format-time-string
 "%a %b %d %H:%M:%S %Y %Z" (nth 5 (file-attributes "~/src/alloca.c")) t) ->
"Fr Jän 30 16:10:02 2004 GMT"

BTW, stat (GNU coreutils) 5.3.0 gives the same results as Emacs, hence
the results delivered by stat and ls (GNU fileutils) 3.16 differ on my
system.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]