home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Professional
/
OS2PRO194.ISO
/
os2
/
sysutils
/
qutils
/
qdate.doc
< prev
next >
Wrap
Text File
|
1993-04-17
|
2KB
|
78 lines
QDATE (OS/2) - 1.00
Documentation
Copyright 1992-1993, Thomas G. Harold, All Rights Reserved.
QDATE [-filename] [+"format"]
-filename - Appends output to a file.
+"format" - Format string for time values.
QDATE is part of the QUTIL2 utilities package and may not be
distributed seperately.
QDATE works much like the *nix "date" command with the
addition of the ability to redirect its output to a file. Some
codes may not work exactly like the *nix "date" command's do,
and the character '!' is used instead of '%'.
-----------------------------------------------------------------
I. Installation:
Copy the qdate.exe file to a directory in your PATH statement.
The TZ environment variable should also be set in your AUTOEXEC.BAT
so that QDATE knows how your local time compares to Greenwich
Mean Time. The TZ string consists of a 3 letter time zone name
followed by an integer defining the difference in hours between
Greenwich Mean Time and your local time. Although this will not
have an effect on the reported time, it will correct what the "!Z"
format command prints.
Some examples are:
set TZ=EST5 - Eastern Standard Time Zone
set TZ=EST5EDT - Eastern Daylight Savings Time Zone
set TZ=CST6 - Central Standard Time Zone
set TZ=CST6CDT - Central Daylight Savings Time Zone
set TZ=MST7 - Mountain Standard Time Zone
set TZ=MST7MDT - Mountain Daylight Savings Time Zone
set TZ=PST8 - Pacific Standard Time Zone
set TZ=PST8PDT - Pacific Daylight Savings Time Zone
II. Usage:
QDATE defaults to printing the current date and time in the
following format:
Mon Oct 19 03:22:04 EDT 1992
Other formats may be specified by using the +"format"
argument. For example:
QDATE +"!y!m!d Shutdown"
921019 Shutdown
QDATE +"!a !b !d !H:!M:!S !Z !Y"
Mon Oct 19 03:22:04 EDT 1992
A full list of the format commands may be obtained by entering
the command:
QDATE -?
-----------------------------------------------------------------
History:
1.00 Oct 1992
Original version.
1.00 Apr 1993
Original OS/2 port.