|
| |
.GetTimeP
Description
- Displays the current time as hh:mn:ss.hs
- Saves the value in #TimeP {P is
for Precise}
- Similar to %TIME% in 2K/XP/K3, but is CONSISTENT across NT/2K/XP/K3
hh = two-digit hour (01-24)
mn = two-digit minute (01-60) {mm is used for months}
ss = two-digit seconds (01-60)
hs = two-digit hundredth of a second (00-99)
Syntax
At the Command Prompt
|
C:\>. GetTimeP |
|
|
|
C:\>%.GetTimeP% |
|
|
In a Script
Parameters and Switches
Errorlevels and Output Variables
|
Display to
STDOUT |
|
Value of
#TimeP |
|
Error
Level |
|
Description of Result |
|
07:05:30.07 |
|
07:05:30.07 |
|
n/a |
|
Display current time as
hh:mn:ss.hs |
Examples, Notes and Instructions
NT
2K
XP
K3 |
C:\GuardPost>%.GetTimeP%
07:05:30.07
C:\GuardPost>SET #TimeP
#TimeP=07:05:30.07 |
- Output is displayed to STDOUT
- To suppress console display, use
%.GetTimeP% %.Quiet%
{errorlevel and output variable(s) will still be available}
Related .Mount/\Commands, #Constants,
$Functions, :Procedures
|
Resource |
|
Short Description |
|
.GetDate |
|
Display current date in local date format |
|
.GetTime |
|
Display current time in local time format |
|
.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 |
!GuardNotes
...
|
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 |
|