help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Postscript print buffer with ISO date?


From: Kevin Rodgers
Subject: Re: Postscript print buffer with ISO date?
Date: Thu, 20 Feb 2003 13:24:42 -0700
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2

Eric Marsden wrote:

"stm" == Svend Tollak Munkejord <address@hidden> 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:&lt;kevin.rodgers&#64;ihs.com&gt;";>Kevin Rodgers</a>



reply via email to

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