Search notes:
cmd.exe - time
time
prints the current time and prompts for entering a new timej.
In order to just print the date,
/t
is used:
C:\> time /t 10:42 AM
The current time is also stored in the
pseudo (or dynamic) variable
%time%
, albeit in a different format and an accuracy down to hundredth of seconds:
C:\>
echo
%time% 10:42:21.77
See also
date
The shell command
date
cmd.exe: Built-in commands
Index