time
嚯嚯 发表于 2020-06-22 14:42浏览次数:
The time command allows the user to view and edit the computer's time.
目录:
1 time 运行系统环境
2 time 语法
3 time 示例
time 运行系统环境
Windows 95
Windows 98
Windows xp
Windows vista
Windows 2000
Windows 7
Windows 8
Windows 10
Windows NT
Windows ME
All Versions of MS-DOS
time 语法
Windows Vista及之后版本的语法
TIME [/T | time]
键入不带参数的TIME以显示当前时间设置并提示输入新时间。按Enter保持相同的时间。
如果启用了命令扩展,则TIME命令支持/ T开关,该开关告诉命令仅输出当前时间而不提示新时间。
Windows XP及之前版本的语法
TIME [time]
键入不带参数的TIME以显示当前时间设置并提示输入新时间。按Enter保持相同的时间。
Windows Vista and later syntax
TIME [/T | time]
Type TIME with no parameters to display the current time setting and a prompt for a new time. Press Enter to keep the same time.
If Command Extensions are enabled, the TIME command supports the /T switch which tells the command to only output the current time without prompting for a new time.
Windows XP and earlier syntax
TIME [time]
Type TIME with no parameters to display the current time setting and a prompt for a new time. Press Enter to keep the same time.
time 示例
time
仅输入“time”将显示当前时间,并提供输入新时间的选项。
time 12:00
将计算机时间设置为12:00。
time
Entering "time" alone displays the current time and give you the option to enter a new time.
time 12:00
Set the computer time to 12:00.
在不输入新时间的情况下按Enter键将保留当前时间。
Pressing Enter without entering a new time will keep the current time.