MathGroup Archive 2002

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Q: Displaying Current time/date in Page headers

  • To: mathgroup at smc.vnet.net
  • Subject: [mg34247] Re: Q: Displaying Current time/date in Page headers
  • From: aes <siegman at stanford.edu>
  • Date: Sat, 11 May 2002 04:05:11 -0400 (EDT)
  • Organization: Stanford University
  • References: <abfrrv$grc$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

In article <abfrrv$grc$1 at smc.vnet.net>,
 "Coleman, Mark" <mark.coleman at dri-wefa.com> wrote:

> Hi,
> 
> Is there a way to have the current time and date appear in the PageHeader (or 
> Footer) of a notebook when printing?
> 
> Thanks
> 
> -Mark
> 
> 

On a Mac at least, you go to the "PrintingSettings->Headers and Footers' menu 
and put the following text in the header or footer box (I usually put it in the 
center header box):

   Cell[ TextData[ {ValueBox[ "Date"], ", ", ValueBox[ "Time"]}], "Header"]

To print date and time within a notebook,use

Print["Evaluated on  ",Date[]\[LeftDoubleBracket]2\[RightDoubleBracket],"/",
    Date[]\[LeftDoubleBracket]3\[RightDoubleBracket],"/",
    Date[]\[LeftDoubleBracket]1\[RightDoubleBracket],"  at  ",
    Date[]\[LeftDoubleBracket]4\[RightDoubleBracket],":",
    Date[]\[LeftDoubleBracket]5\[RightDoubleBracket],":",
    Date[]\[LeftDoubleBracket]6\[RightDoubleBracket]," .\n"];

(That needs to be de-formatted, but it's what you want.


  • Prev by Date: Re: completing the square on and expression in matrix form
  • Next by Date: Re: How to put parameter list in or near a graph?
  • Previous by thread: Re: Q: Displaying Current time/date in Page headers
  • Next by thread: Text Columns