|
| |
|
K
E
Y |
Common Commands |
INTERNAL |
External |
/SWITCH |
Parameter |
Help text |
AddonTool |
|
Mounted Commands |
.Mount/\Command |
CmdShorthand |
#Constant |
$FUNCTION |
:Procedure |
!GuardNote |
|
Operating Systems |
NT/2K/XP/K3 |
NT Only |
NT/2K |
2K Only |
2K/XP |
XP Only |
XP/K3 |
K3 Only |
2K/XP/K3 |
Related Resources from the NT/2K/XP/K3 Command Library
|
Resource |
|
Short Description |
|
.NowDate |
|
Displays the current date (DATE like DATE /T, no
trailing space) |
|
.eNowDate |
|
Displays the current date (DATE like DATE /T)
(escaped version) |
|
.DateEcho |
|
ECHOs "[DATE] Text" to STDOUT. (DATE like DATE /T) |
|
.dErrEcho |
|
ECHOs "[DATE] Text" to STDERR. (DATE like DATE /T) |
|
.dtEcho |
|
ECHOs "[DATE @ TIME] Text" to STDOUT. (DATE like DATE
/T, TIME hh:mn:ss) |
|
.dtErrEcho |
|
ECHOs "[DATE @ TIME] Text" to STDERR. (DATE like DATE
/T, TIME hh:mn:ss) |
|
.GetDate |
|
Displays the current date (format from DATE /T)
-AND- updates #Date |
|
.GetTime |
|
Display current time in local time format -AND- updates #Time |
|
.GetTimeP |
|
Display current Precise time local time format -AND- updates
#TimeP |
|
.GetLogDate |
|
Display current date as yyyymmdd, regardless of the local date format |
|
.GetLogTime |
|
Display current time as hhmnss, regardless of the local time format |
|
.GetLogTimeP |
|
Display current time as hhmnsshs, regardless of the local time format |
|
#Date |
|
Date in local format from Library /init or
.GetDate |
|
#LogDate |
|
Date in yyyymmdd format from .GetLogDate |
Go straight to !GuardNotes. (updated
2004-07-13)
This is the Mounted Help Text. We also archive the Common Help Text
for NT,
2K, XP
and K3
Description
Displays or sets the date.
Syntax
Parameters and Switches
|
date |
|
new date to set |
|
/T |
|
Output the date, without prompting for a
new one |
Examples, Notes and Instructions
Type DATE without parameters to display the current date setting and a prompt for a new one. Press ENTER to keep the
same date.
If Command Extensions are enabled the DATE command supports the /T switch which tells the command to just output the
current date, without prompting for a new date.
GuardNotes
Things that are different (by design, by accident or otherwise)
Determining the local date format
DATE /T will show the localized date format in the prompt string (mm-dd-yy, dd-mm-yy,
etc.). This can be parsed to provide a date routine that works regardless of regional settings. You can use this multiline routine every time you need to calculate the date, or you can
simply use .GetLogDate and it's related commands from
the ValueEcho Series, which CONSISTENTLY "normalize" the date format to yyyymmdd,
regardless of the local settings.
|