From: Kevin Rodgers <kevin.rodgers@ihs.com>
Subject: Re: Postscript print buffer with ISO date?
Date: Thu, 20 Feb 2003 13:24:42 -0700 [thread overview]
Message-ID: <3E55398A.5050108@ihs.com> (raw)
In-Reply-To: wzi1y23nth7.fsf@melbourne.laas.fr
Eric Marsden wrote:
>>>>>>"stm" == Svend Tollak Munkejord <stm@bacchus.pvv.org> writes:
>>>>>>
>
> ecm> (require 'cl)
> ecm> (defun my-iso8601-date () (format-time-string "%Y-%d-%d"))
> ecm> (eval-after-load "ps-print"
> ecm> (setf (second ps-print-header) 'my-iso8601-date))
>
> stm> (defun ps-time-stamp-iso ()
> stm> "Return date as \"2003-02-20\"."
> stm> (format-time-string "%Y-%m-%d"))
> stm> (setq ps-right-header '("/pagenumberstring load" ps-time-stamp-iso ps-time-stamp-hh:mm:ss))
> stm>
> stm> Is your solution preferable?
...
> An other point is that neither solution will work well if the default
> contents of the ps-right-header variable change in the future.
How about
(setcar (memq 'time-stamp-mon-dd-yyyy ps-right-header) 'ps-time-stamp-iso)
--
<a href="mailto:<kevin.rodgers@ihs.com>">Kevin Rodgers</a>
next prev parent reply other threads:[~2003-02-20 20:24 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
2003-02-20 9:55 ` Svend Tollak Munkejord
2003-02-20 10:20 ` Eric Marsden
2003-02-20 20:24 ` Kevin Rodgers [this message]
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=3E55398A.5050108@ihs.com \
--to=kevin.rodgers@ihs.com \
/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).