根據預設,Get-Date 傳回該時區的值。 使用 AsUTC 參數,將值轉換為 UTC 對等時間。 PowerShell 複製 PS> Get-TimeZone Id : Pacific Standard Time DisplayName : (UTC-08:00) Pacific Time (US & Canada) StandardName : Pacific Standard Time DaylightName : Pacific Daylight Time BaseUtcOffset :...
Get-TimeZone [[-Name] <String[]>] [<CommonParameters>]PowerShell 复制 Get-TimeZone -Id <String[]> [<CommonParameters>]PowerShell 复制 Get-TimeZone [-ListAvailable] [<CommonParameters>]说明此cmdlet 仅在 Windows 平台上可用。Get-TimeZone cmdlet 获取当前时区或可用时区的列表。示例...
默认情况下,Get-Date 返回该时区的值。 使用 AsUTC 参数将值转换为 UTC 等效时间。 PowerShell 复制 PS> Get-TimeZone Id : Pacific Standard Time DisplayName : (UTC-08:00) Pacific Time (US & Canada) StandardName : Pacific Standard Time DaylightName : Pacific Daylight Time BaseUtcOffset : -...
$F_TimeZoneInformation.standardDate = ConverterTZI $F_TZI 12 "standardDate" $F_TimeZoneInformation.standardBias = [BitConverter]::ToInt32($F_TZI, 4) $F_TimeZoneInformation.daylightName = $arg_TimeZone.GetValue("Dlt") $F_TimeZoneInformation.daylightDate = ConverterTZI $F_TZI 28 "daylightD...
powershell Get-TimeZoneInfo(simply testing one) cls function ConverterTZI($arg_tzi,$arg_startIndex,$name="NULL") { $SYSTEMTIME = 1 |select wYear,wMonth,wDayOfWeek,wDay,wHour,wMinute,wSecond,wMilliseconds,Name Add-Member -InputObject $SYSTEMTIME -MemberType ScriptMethod Ini{...
您应该研究一下DateTimeformat strings,虽然我不确定它们是否能够返回时区简称,但是您可以很容易地获得UTC...
Powershell使用DST获取时区是的,你可以在TimeZoneInfo类上使用静态方法IsDaylightSavingTime从所需的...
If -Sort parameter is not defined, Get-TimeZoneTable will try to sort by Date (Current), Time (Current) and Time Zone Id in an ascending order. In the HTML Time Zone Table and other outputs all the headers are sortable (with the commands) and some headers have aliases, too. Valid -...
Powershell使用DST获取时区是的,你可以在TimeZoneInfo类上使用静态方法IsDaylightSavingTime从所需的...
I am a bit lost getting my region, language, time zone and keyboard layout together.At the Moment i have a Powershell skript ready to get deployt via Intune with the Following Commands:#Luxembourg -Set-WinHomeLocation -GeoId 147 # Set Luxembourg - Country or Region Setting...