다음을 통해 공유


TimeZoneConverter class

표준 시간대 변환기입니다. (1) Windows(.NET) 표준 시간대에서 iana 표준 시간대로. (2) iana 표준 시간대에서 windows(.NET) 표준 시간대로. windows ref: https://support.microsoft.com/en-us/help/22803/daylight-saving-time. iana ref: https://www.iana.org/time-zones.

메서드

ianaToWindows(string)

IANA 표준 시간대 형식을 Windows 표준 시간대 형식으로 변환합니다.

verifyTimeZoneStr(string)

문자열이 windows 표준 시간대 또는 iana 문자열인지 확인합니다.

windowsToIana(string)

Windows 표준 시간대를 iana 표준 시간대로 변환합니다.

메서드 세부 정보

ianaToWindows(string)

IANA 표준 시간대 형식을 Windows 표준 시간대 형식으로 변환합니다.

static function ianaToWindows(ianaTimeZoneId: string): string

매개 변수

ianaTimeZoneId

string

IANA 표준 시간대 형식입니다.

반환

string

windows 표준 시간대 형식입니다.

verifyTimeZoneStr(string)

문자열이 windows 표준 시간대 또는 iana 문자열인지 확인합니다.

static function verifyTimeZoneStr(timezoneStr: string): boolean

매개 변수

timezoneStr

string

표준 시간대 문자열

반환

boolean

는 문자열이 표준 시간대 문자열인 경우

windowsToIana(string)

Windows 표준 시간대를 iana 표준 시간대로 변환합니다.

static function windowsToIana(windowsTimeZoneId: string): string

매개 변수

windowsTimeZoneId

string

Windows 표준 시간대 형식입니다.

반환

string

Iana 표준 시간대 형식입니다.