add new chinese translations
This commit is contained in:
21
pages.zh/windows/get-date.md
Normal file
21
pages.zh/windows/get-date.md
Normal file
@@ -0,0 +1,21 @@
|
||||
# 获取日期
|
||||
|
||||
> 获取当前日期和时间。
|
||||
> 注意:该命令只能通过 PowerShell 使用。
|
||||
> 更多信息:<https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/get-date>。
|
||||
|
||||
- 显示当前日期和时间:
|
||||
|
||||
`Get-Date`
|
||||
|
||||
- 使用 .NET 格式说明符显示当前日期和时间:
|
||||
|
||||
`Get-Date -Format "{{yyyy-MM-dd HH:mm:ss}}"`
|
||||
|
||||
- 以 UTC 和 ISO 8601 格式显示当前日期和时间:
|
||||
|
||||
`(Get-Date).ToUniversalTime()`
|
||||
|
||||
- 转换 Unix 时间戳:
|
||||
|
||||
`Get-Date -UnixTimeSeconds {{1577836800}}`
|
Reference in New Issue
Block a user