From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Graham Smith" Newsgroups: gmane.emacs.help Subject: Re: UK date format in Dired Date: Sat, 27 Jan 2007 08:40:44 +0000 Message-ID: <2c75873c0701270040n3309b6b3q53696cb2658c880c@mail.gmail.com> References: <87hcud5hp7.fsf@lion.rapttech.com.au> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1065122749==" X-Trace: sea.gmane.org 1169887267 26762 80.91.229.12 (27 Jan 2007 08:41:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 27 Jan 2007 08:41:07 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Tim X" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 27 09:41:04 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HAj7P-0003Ss-8Q for geh-help-gnu-emacs@m.gmane.org; Sat, 27 Jan 2007 09:41:03 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HAj7O-0005h0-Kc for geh-help-gnu-emacs@m.gmane.org; Sat, 27 Jan 2007 03:41:02 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HAj78-0005gn-T3 for help-gnu-emacs@gnu.org; Sat, 27 Jan 2007 03:40:47 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HAj77-0005gb-SX for help-gnu-emacs@gnu.org; Sat, 27 Jan 2007 03:40:46 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HAj77-0005gW-Mh for help-gnu-emacs@gnu.org; Sat, 27 Jan 2007 03:40:45 -0500 Original-Received: from nf-out-0910.google.com ([64.233.182.186]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HAj77-0000p0-4j for help-gnu-emacs@gnu.org; Sat, 27 Jan 2007 03:40:45 -0500 Original-Received: by nf-out-0910.google.com with SMTP id h2so1393492nfe for ; Sat, 27 Jan 2007 00:40:44 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=MTauFtLGqjuG/LxHJaLS/7xE0svxjCjBWvRdQ/TaLBNbk2ufK7UPDgx6OZiYwxutHd2PQh17WwBtJ+vLThMCe71UlN4QDAavQsZGwkltdx8V0t5qEbaboHXmNYEGdazKijxGbm0fEl49ipmp/lX6b/ovdr5p5fNn5jZ6yCac1+s= Original-Received: by 10.49.34.17 with SMTP id m17mr6674335nfj.1169887244106; Sat, 27 Jan 2007 00:40:44 -0800 (PST) Original-Received: by 10.49.20.19 with HTTP; Sat, 27 Jan 2007 00:40:43 -0800 (PST) In-Reply-To: <87hcud5hp7.fsf@lion.rapttech.com.au> X-detected-kernel: Linux 2.4-2.6 (Google crawlbot) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:40703 Archived-At: --===============1065122749== Content-Type: multipart/alternative; boundary="----=_Part_39019_33282142.1169887244013" ------=_Part_39019_33282142.1169887244013 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Tim, Thanks for this, I don't know which version of ls I am using, but I am running emacsW32, and maybe this has modified some aspect of this. I have now asked across on its support forum about it. The "setq" code suggested in the help doesn't make any difference :-( Indeed, although its a bit confusing with recent files, I think I might just stick with the ISO date format, and come back to this when I know more about emacs. Thanks again for your help. Graham On 27/01/07, Tim X wrote: > > "Graham Smith" writes: > > > Is it possible to get Dired to show dates in UK format. I have added a > line to > > .emacs to show the diary dates in European format, but cannot find any > instructions > > to change the format in Dired. > > > > This probably depends on whether your using the elisp version of ls or the > ls > that is installed on your system (the one which would be called in a > shell). > > If your using the elisp ls emulation, check out ls-lisp-format-time-list. > I use > the ls-lisp function rather than the native ls program because I also like > dired to list directories first. > > ,----[ C-h v ls-lisp-format-time-list RET ] > | ls-lisp-format-time-list is a variable defined in `ls-lisp.el'. > | Its value is > | ("%b %e %H:%M" "%b %e %Y") > | > | > | > | Documentation: > | *List of `format-time-string' specs to display file time stamps. > | They are used whenever a locale is not specified to use instead. > | > | Syntax: (EARLY-TIME-FORMAT OLD-TIME-FORMAT) > | > | The EARLY-TIME-FORMAT is used if file has been modified within the > | current year. The OLD-TIME-FORMAT is used for older files. To use ISO > | 8601 dates, you could set: > | > | (setq ls-lisp-format-time-list > | '("%Y-%m-%d %H:%M" > | "%Y-%m-%d ")) > | > | You can customize this variable. > | > | [back] > `---- > > regards, > > Tim > > -- > tcross (at) rapttech dot com dot au > _______________________________________________ > help-gnu-emacs mailing list > help-gnu-emacs@gnu.org > http://lists.gnu.org/mailman/listinfo/help-gnu-emacs > ------=_Part_39019_33282142.1169887244013 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Tim,

Thanks for this, I don't know which version of ls I am using, but I am running emacsW32, and maybe this has modified some aspect of this. I have now asked across on its support forum about it.

The "setq" code suggested in the help doesn't make any difference :-(

Indeed, although its a bit confusing with recent files, I think I might just stick with the ISO date format, and come back to this when I know more about emacs.

Thanks again for your help.

Graham

On 27/01/07, Tim X <timx@nospam.dev.null> wrote:
"Graham Smith" <myotisone@gmail.com> writes:

> Is it possible to get Dired to show dates in UK format.  I have added a line to
> .emacs to show the diary dates in European format, but cannot find any instructions
> to change the format in Dired.
>

This probably depends on whether your using the elisp version of ls or the ls
that is installed on your system (the one which would be called in a shell).

If your using the elisp ls emulation, check out ls-lisp-format-time-list. I use
the ls-lisp function rather than the native ls program because I also like
dired to list directories first.

,----[ C-h v ls-lisp-format-time-list RET ]
| ls-lisp-format-time-list is a variable defined in `ls- lisp.el'.
| Its value is
| ("%b %e %H:%M" "%b %e  %Y")
|
|
|
| Documentation:
| *List of `format-time-string' specs to display file time stamps.
| They are used whenever a locale is not specified to use instead.
|
| Syntax:  (EARLY-TIME-FORMAT OLD-TIME-FORMAT)
|
| The EARLY-TIME-FORMAT is used if file has been modified within the
| current year. The OLD-TIME-FORMAT is used for older files.  To use ISO
| 8601 dates, you could set:
|
| (setq ls-lisp-format-time-list
|        '("%Y-%m-%d %H:%M"
|          "%Y-%m-%d      "))
|
| You can customize this variable.
|
| [back]
`----

regards,

Tim

--
tcross (at) rapttech dot com dot au
_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

------=_Part_39019_33282142.1169887244013-- --===============1065122749== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ help-gnu-emacs mailing list help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs --===============1065122749==--