| external help file | Microsoft.PowerShell.Commands.Management.dll-Help.xml | |
|---|---|---|
| Locale | en-US | |
| Module Name | Microsoft.PowerShell.Management | |
| ms.date | 10/02/2022 | |
| online version | https://learn.microsoft.com/powershell/module/microsoft.powershell.management/get-timezone?view=powershell-7.6&WT.mc_id=ps-gethelp | |
| schema | 2.0.0 | |
| aliases |
|
|
| title | Get-TimeZone |
Gets the current time zone or a list of available time zones.
Get-TimeZone [[-Name] <String[]>] [<CommonParameters>]
Get-TimeZone -Id <String[]> [<CommonParameters>]
Get-TimeZone [-ListAvailable] [<CommonParameters>]
This cmdlet is only available on the Windows platform.
The Get-TimeZone cmdlet gets the current time zone or a list of available time zones.
Get-TimeZoneThis command gets the current time zone.
Get-TimeZone -Name "*pac*"Pacific Standard Time (Mexico)
(UTC-08:00) Pacific Time (US & Canada)
Pacific Standard Time
SA Pacific Standard Time
Pacific SA Standard Time
West Pacific Standard Time
Central Pacific Standard Time
This command gets all time zones that match the specified wildcard.
Get-TimeZone -ListAvailableThis command gets all available time zones.
Specifies, as a string array, the ID or IDs of the time zones that this cmdlet gets.
Type: System.String[]
Parameter Sets: Id
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseIndicates that this cmdlet gets all available time zones.
Type: System.Management.Automation.SwitchParameter
Parameter Sets: ListAvailable
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseSpecifies, as a string array, the name or names of the time zones that this cmdlet gets.
Type: System.String[]
Parameter Sets: Name
Aliases:
Required: False
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: TrueThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
PowerShell includes the following aliases for Get-TimeZone:
- All platforms:
gtz