Share via


Get-TimeZone

현재 표준 시간대 또는 사용 가능한 표준 시간대 목록을 가져옵니다.

Syntax

Get-TimeZone
   [[-Name] <String[]>]
   [<CommonParameters>]
Get-TimeZone
   -Id <String[]>
   [<CommonParameters>]
Get-TimeZone
   [-ListAvailable]
   [<CommonParameters>]

Description

cmdlet은 Get-TimeZone 현재 표준 시간대 또는 사용 가능한 표준 시간대 목록을 가져옵니다.

예제

예제 1: 현재 표준 시간대 가져오기

Get-TimeZone

이 명령은 현재 표준 시간대를 가져옵니다.

예제 2: 지정된 문자열과 일치하는 표준 시간대 가져오기

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

이 명령은 지정된 wild카드 일치하는 모든 표준 시간대를 가져옵니다.

예제 3: 사용 가능한 모든 표준 시간대 가져오기

Get-TimeZone -ListAvailable

이 명령은 사용 가능한 모든 표준 시간대를 가져옵니다.

매개 변수

-Id

문자열 배열로 이 cmdlet이 가져오는 표준 시간대의 ID 또는 ID를 지정합니다.

Type:String[]
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-ListAvailable

이 cmdlet은 사용 가능한 모든 표준 시간대를 가져옵니다.

Type:SwitchParameter
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Name

문자열 배열로 이 cmdlet이 가져오는 표준 시간대의 이름 또는 이름을 지정합니다.

Type:String[]
Position:0
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:True

입력

String[]

출력

TimeZoneInfo[]

참고

Windows PowerShell에는 다음 별칭이 포함됩니다.Get-TimeZone

  • gtz