[Top][All Lists]

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

remote (ange-ftp) file date and time and UTC

From: Kin Cho
Subject: remote (ange-ftp) file date and time and UTC
Date: 24 Feb 2003 10:32:26 -0800
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

I'm writing some elisp to compare the modification time of a file
and the remote version of the same.

At "Mon Feb 24 10:20:33 PST 2003", I wrote a file
"/".  The dired buffer shows this:

  -rw-r--r--   1 kin      foobar          2 Feb 24 18:20 jj

and (decode-time (nth 5 (file-attributes "/")))
shows this:

(33 20 2 24 2 2003 1 nil -28800)

I have a couple of problems with the above.

First, seems to me zone should be zero, because "date -u" tells
me: Mon Feb 24 18:20:35 UTC 2003

Second, I don't understand hour is 2.  Perhaps it's related to
the wrong zone info.


p.s. my (current-time-zone) is (-28800 "PST")

reply via email to

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