파이썬 pytz.timezone()에서 사용 가능한 시간대 목록

by joviansummer
original STEEMIT post: https://steemit.com/blog/@joviansummer/pytz-timezone


우선 파이썬에서의 시간대(timezone) 정보 관련 이전 게시물은 아래의 링크입니다.

파이썬에서 시간대(timezone) 변경 https://steemit.com/hive-141029/@joviansummer/timezone

파이선 pytz 모듈에서 사용 가능한 시간대 명칭의 목록은 pytz.all_timezones에 리스트(list)로 저장되어 있습니다.

import pytz
# 시간대 목록 전체 확인 
pytz.all_timezones
# 첫번째 항목 확인
pytz.all_timezones[0]

또는 위키피디아에서 확인할 수 있습니다. 아래의 링크 입니다.

list of tz database time zones https://en.wikipedia.org/wiki/List_of_tz_database_time_zones

시간대 정보 목록에서 "TZ database name" 항목을 보면 됩니다.

대표적인 시간대 몇개를 적어 둡니다.

UTC/GMT: UTC 서울: Asia/Seoul 도쿄: Asia/Tokyo 싱가포르: Asia/Singapore 미국 서부(LA 등): US/Pacific 미국 동부(뉴욕, 워싱턴DC 등): US/Eastern 런던: Europe/London 파리: Europe/Paris

Comments

Popular posts from this blog

GentBG - why bother to burn STEEM?

GentBG will continue to burn STEEM, with reduced posting frequency

스티미언의 영향력 지수 계산