From: Eric Marsden <emarsden@laas.fr>
Subject: Re: Postscript print buffer with ISO date?
Date: Thu, 20 Feb 2003 10:34:51 +0100 [thread overview]
Message-ID: <wziel63nvlw.fsf@melbourne.laas.fr> (raw)
In-Reply-To: hdd8ywbpclz.fsf@bacchus.pvv.ntnu.no
>>>>> "stm" == Svend Tollak Munkejord <stm@bacchus.pvv.org> writes:
stm> I use GNU Emacs 21.2. When I print a buffer using the
stm> "Postscript print buffer" function, Emacs prints the date in
stm> the format mm/dd/yyyy (e.g. 02/20/2003 today). I would like it
stm> to use the ISO format yyyy-mm-dd. I searched the manual, but
stm> did not find out how to do this. Can anyone help?
the stuff that is printed on the right side of the header is
determined by the variable ps-right-header. If you examine the
contents of this variable, you probably have an element like
ps-time-stamp-mon-dd-yyyy. Just change this element to something that
you prefer.
(require 'cl)
(defun my-iso8601-date () (format-time-string "%Y-%d-%d"))
(eval-after-load "ps-print"
(setf (second ps-print-header) 'my-iso8601-date))
--
Eric Marsden <URL:http://www.laas.fr/~emarsden/>
next prev parent reply other threads:[~2003-02-20 9:34 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-20 8:42 Postscript print buffer with ISO date? Svend Tollak Munkejord
2003-02-20 9:11 ` François Fleuret
2003-02-20 9:34 ` Eric Marsden [this message]
2003-02-20 9:55 ` Svend Tollak Munkejord
2003-02-20 10:20 ` Eric Marsden
2003-02-20 20:24 ` Kevin Rodgers
2003-02-21 8:25 ` Eric Marsden
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=wziel63nvlw.fsf@melbourne.laas.fr \
--to=emarsden@laas.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).