如何使用 PowerShell 检查日期是否已根据夏令时调整?
powershellmicrosoft technologiessoftware & coding更新于 2026/2/14 21:52:17
要检查日期是否已根据夏令时调整,您需要使用 Get-Date cmdlet 中的 IsDayLightSavingTime() 函数。
PS:C:\WINDOWS\system32> (Get-Date).IsDaylightSavingTime() False
要了解更多关于夏令时的信息,请查看以下链接。
http://www.webexhibits.org/daylightsaving/b.html

