Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.postscript > #2325

Re: Can PostScript access the machine clock, expressed as a date and time?

From Martin Leese <please@see.Web.for.e-mail.INVALID>
Newsgroups comp.lang.postscript
Subject Re: Can PostScript access the machine clock, expressed as a date and time?
Date 2015-08-15 11:23 -0600
Organization A noiseless patient Spider
Message-ID <mqnser$1e8$1@dont-email.me> (permalink)
References <13dc49a5-e8f7-4609-a2ab-7e3a186abc3d@googlegroups.com>

Show all headers | View raw


jdaw1 wrote:
> A PostScript file is written, and later distilled. I'd like the output to include the date and time of distillation. Can PostScript access the machine clock, expressed as a date and time? I'm not stressed whether local or GMT, but want at least one of them?
> 
> Please, is it possible, and if so, how?
> 
> The question applies to both Adobe Distiller and Ghostscript: a solution that works in one is better than no solution.

Visit:
https://en.wikibooks.org/wiki/PostScript_FAQ#How_to_get_date_and_time.3F

This illustrates how to use the %Calendar%
resource (as suggested by ken).  This link
also points to PostScript Language Reference
Manual version 2012 supplement (1992), in
which %Calendar% is defined.

Note that %Calendar% is not mentioned in
PostScript LANGUAGE REFERENCE third edition
(1999).  It is therefore pot luck whether it
is supported on a particular
printer/interpreter.  It seems to be
associated with a Fax device.

-- 
Regards,
Martin Leese
E-mail: please@see.Web.for.e-mail.INVALID
Web: http://members.tripod.com/martin_leese/

Back to comp.lang.postscript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Can PostScript access the machine clock, expressed as a date and time? jdaw1 <jdawiseman@gmail.com> - 2015-08-15 02:55 -0700
  Re: Can PostScript access the machine clock, expressed as a date and time? ken <ken@spamcop.net> - 2015-08-15 12:11 +0100
    Re: Can PostScript access the machine clock, expressed as a date and time? jdaw1 <jdawiseman@gmail.com> - 2015-08-15 04:36 -0700
      Re: Can PostScript access the machine clock, expressed as a date and time? jdaw1 <jdawiseman@gmail.com> - 2015-08-15 06:22 -0700
        Re: Can PostScript access the machine clock, expressed as a date and time? jdaw1 <jdawiseman@gmail.com> - 2015-08-15 11:24 -0700
          Re: Can PostScript access the machine clock, expressed as a date and time? jdaw1 <jdawiseman@gmail.com> - 2015-08-15 11:26 -0700
  Re: Can PostScript access the machine clock, expressed as a date and time? Martin Leese <please@see.Web.for.e-mail.INVALID> - 2015-08-15 11:23 -0600
    Re: Can PostScript access the machine clock, expressed as a date and time? jdaw1 <jdawiseman@gmail.com> - 2015-08-15 14:38 -0700
      Re: Can PostScript access the machine clock, expressed as a date and time? jdaw1 <jdawiseman@gmail.com> - 2015-08-16 04:58 -0700
        Re: Can PostScript access the machine clock, expressed as a date and time? Martin Leese <please@see.Web.for.e-mail.INVALID> - 2015-08-16 10:29 -0600
        Re: Can PostScript access the machine clock, expressed as a date and time? jdaw1 <jdawiseman@gmail.com> - 2015-12-08 06:13 -0800
          Re: Can PostScript access the machine clock, expressed as a date and time? jdaw1 <jdawiseman@gmail.com> - 2015-12-14 07:05 -0800

csiph-web