Get-TimeZone
Gets the current time zone or a list of available time zones.
구문
Name (기본값)
Get-TimeZone
[[-Name] <String[]>]
[<CommonParameters>]
Id
Get-TimeZone
-Id <String[]>
[<CommonParameters>]
ListAvailable
Get-TimeZone
[-ListAvailable]
[<CommonParameters>]
Description
The Get-TimeZone
cmdlet gets the current time zone or a list of available time zones.
예제
Example 1: Get the current time zone
Get-TimeZone
This command gets the current time zone.
Example 2: Get time zones that match a specified string
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.
Example 3: Get all available time zones
Get-TimeZone -ListAvailable
This command gets all available time zones.
매개 변수
-Id
Specifies, as a string array, the ID or IDs of the time zones that this cmdlet gets.
매개 변수 속성
형식: | String[] |
Default value: | None |
와일드카드 지원: | False |
DontShow: | False |
매개 변수 집합
Id
Position: | Named |
필수: | True |
파이프라인의 값: | False |
속성 이름별 파이프라인의 값: | True |
나머지 인수의 값: | False |
-ListAvailable
Indicates that this cmdlet gets all available time zones.
매개 변수 속성
형식: | SwitchParameter |
Default value: | None |
와일드카드 지원: | False |
DontShow: | False |
매개 변수 집합
ListAvailable
Position: | Named |
필수: | True |
파이프라인의 값: | False |
속성 이름별 파이프라인의 값: | False |
나머지 인수의 값: | False |
-Name
Specifies, as a string array, the name or names of the time zones that this cmdlet gets.
매개 변수 속성
형식: | String[] |
Default value: | None |
와일드카드 지원: | True |
DontShow: | False |
매개 변수 집합
Name
Position: | 0 |
필수: | False |
파이프라인의 값: | True |
속성 이름별 파이프라인의 값: | False |
나머지 인수의 값: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
입력
String
출력
TimeZoneInfo
참고
Windows PowerShell includes the following aliases for Get-TimeZone
:
gtz