Get-Date
Get the current date and time. Note: This command can only be used through PowerShell. More information: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/get-date.
- Display the current date and time:
Get-Date
- Display the current date and time with a .NET format specifier:
Get-Date -Format ""
- Display the current date and time in UTC and ISO 8601 format:
(Get-Date).ToUniversalTime()
- Convert a Unix timestamp:
Get-Date -UnixTimeSeconds
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
