[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

[How do I get today's date into a s/g?]





In XPL: how do I get today's date into a s/g, other than printing
it somewhere and defining it?

Harry, you don't need a VA command. Your XPL program can call the system
date and write it as a "soft" date (changes as the system clock ticks),
with the following string of code:

BC da Mmmm dd, yyyy XC

Of course, you create this as a "program" file, save it, and use the
ldpm command, but you know all that already. There are various other
date formats available, too. This code gives, e.g., May 12, 1998.

You can also write today's date as a "hard" date to your file with this
string of code:

BC today XC

You probably remember all that from the early days of XyWrite.

Incidentally, to give a "hard" time (not to be confused with giving you
a hard time), write:

BC ti XC

Or its analogue:

BC now XC

Peter Brown
Pbrown@xxxxxxxx