Hello Jonathan,
Just to butt in and just FYI:
23 Sep 99 07:51, Jonathan de Boyne Pollard wrote to Darren Hamilton:
JP> this /N option is obviously to overcome a long-standing problem with
JP> both the DATE and TIME commands, namely that one cannot use them to
JP> just *display* the current date and time, without altering it, since
JP> they, in the absence of arguments giving a new date or time, prompt
JP> interactively for a new date or time.
I slapped a small REXX file together to display the date and time (without
prompt to change it):
------------------- begin of datetime.cmd -------------------
/* Day Date Time */
say date('W') date() Time()
-------------------- end of datetime.cmd --------------------
Great for batch / REXX files to stuff the date and time in logfiles.
Date('W') returns the day of week (in other words: sunday, monday, etc.).
Greetings -=Eddy=- email: eddy.thilleman@net.hcc.nl
... MOM'S HINT #028: Learn to handle sleep deprivation.
--- GoldED/2 3.0.1
280/801
* Origin: Windows95 is a graphic DOS extender (2:500/143.7)
|