Powershell是否可以判断当前是上午还是下午

2024-10-29 21:53:47

1、打开Windows Powershell程序窗口;

Powershell是否可以判断当前是上午还是下午

2、在Powershell中输入 Get-Date 指令;

Powershell是否可以判断当前是上午还是下午

3、输入指令参数 -Format ;

Powershell是否可以判断当前是上午还是下午

4、设定判断参数 tt ;可以使用该参数,判断当前的时间是上午还是下午;

Powershell是否可以判断当前是上午还是下午

5、点击回车后,自动返回指令结果;

Powershell是否可以判断当前是上午还是下午

6、请参照 Get-Date 指令结果,学习该指令的参数。

Powershell是否可以判断当前是上午还是下午
猜你喜欢