@@ -17,16 +17,14 @@ msgstr ""
1717"Generated-By : Babel 2.17.0\n "
1818
1919#: ../../library/zoneinfo.rst:2
20- #, fuzzy
2120msgid ":mod:`!zoneinfo` --- IANA time zone support"
22- msgstr ":mod:`zoneinfo` --- IANA 시간대 지원"
21+ msgstr ":mod:`! zoneinfo` --- IANA 시간대 지원"
2322
2423#: ../../library/zoneinfo.rst:12
2524msgid "**Source code:** :source:`Lib/zoneinfo`"
26- msgstr ""
25+ msgstr "**소스 코드:** :source:`Lib/zoneinfo` "
2726
2827#: ../../library/zoneinfo.rst:16
29- #, fuzzy
3028msgid ""
3129"The :mod:`zoneinfo` module provides a concrete time zone implementation "
3230"to support the IANA time zone database as originally specified in "
@@ -37,8 +35,8 @@ msgid ""
3735msgstr ""
3836":mod:`zoneinfo` 모듈은 원래 :pep:`615`\\ 에서 지정된 대로 IANA 시간대 데이터베이스를 지원하기 위한 구상 "
3937"시간대 구현을 제공합니다. 기본적으로, :mod:`zoneinfo`\\ 는 가능하면 시스템의 시간대 데이터를 사용합니다; 사용 가능한"
40- " 시스템 시간대 데이터가 없으면, 라이브러리는 PyPI에 있는 자사(first-party) `tzdata`_ 패키지를 사용하는 "
41- "것으로 대체합니다."
38+ " 시스템 시간대 데이터가 없으면, 라이브러리는 PyPI에 있는 자사(first-party) :pypi: `tzdata` 패키지를 "
39+ "사용하는 것으로 대체합니다."
4240
4341#: ../../library/zoneinfo.rst:24
4442msgid "Module: :mod:`datetime`"
@@ -53,9 +51,8 @@ msgstr ""
5351":class:`~datetime.datetime` 형을 제공합니다."
5452
5553#: ../../library/zoneinfo.rst:28
56- #, fuzzy
5754msgid "Package :pypi:`tzdata`"
58- msgstr "패키지 `tzdata`_ "
55+ msgstr "패키지 :pypi: `tzdata`"
5956
6057#: ../../library/zoneinfo.rst:29
6158msgid ""
@@ -105,6 +102,16 @@ msgid ""
105102">>> dt.tzname()\n"
106103"'PDT'"
107104msgstr ""
105+ ">>> from zoneinfo import ZoneInfo\n"
106+ ">>> from datetime import datetime, timedelta\n"
107+ "\n"
108+ ">>> dt = datetime(2020, 10, 31, 12, "
109+ "tzinfo=ZoneInfo(\" America/Los_Angeles\" ))\n"
110+ ">>> print(dt)\n"
111+ "2020-10-31 12:00:00-07:00\n"
112+ "\n"
113+ ">>> dt.tzname()\n"
114+ "'PDT'"
108115
109116#: ../../library/zoneinfo.rst:52
110117msgid ""
@@ -123,6 +130,13 @@ msgid ""
123130">>> dt_add.tzname()\n"
124131"'PST'"
125132msgstr ""
133+ ">>> dt_add = dt + timedelta(days=1)\n"
134+ "\n"
135+ ">>> print(dt_add)\n"
136+ "2020-11-01 12:00:00-08:00\n"
137+ "\n"
138+ ">>> dt_add.tzname()\n"
139+ "'PST'"
126140
127141#: ../../library/zoneinfo.rst:63
128142msgid ""
@@ -147,6 +161,13 @@ msgid ""
147161">>> print(dt.replace(fold=1))\n"
148162"2020-11-01 01:00:00-08:00"
149163msgstr ""
164+ ">>> dt = datetime(2020, 11, 1, 1, "
165+ "tzinfo=ZoneInfo(\" America/Los_Angeles\" ))\n"
166+ ">>> print(dt)\n"
167+ "2020-11-01 01:00:00-07:00\n"
168+ "\n"
169+ ">>> print(dt.replace(fold=1))\n"
170+ "2020-11-01 01:00:00-08:00"
150171
151172#: ../../library/zoneinfo.rst:76
152173msgid ""
@@ -168,13 +189,23 @@ msgid ""
168189">>> print((dt_utc + timedelta(hours=1)).astimezone(LOS_ANGELES))\n"
169190"2020-11-01 01:00:00-08:00"
170191msgstr ""
192+ ">>> from datetime import timezone\n"
193+ ">>> LOS_ANGELES = ZoneInfo(\" America/Los_Angeles\" )\n"
194+ ">>> dt_utc = datetime(2020, 11, 1, 8, tzinfo=timezone.utc)\n"
195+ "\n"
196+ ">>> # PDT -> PST 전환 전\n"
197+ ">>> print(dt_utc.astimezone(LOS_ANGELES))\n"
198+ "2020-11-01 01:00:00-07:00\n"
199+ "\n"
200+ ">>> # PDT -> PST 전환 후\n"
201+ ">>> print((dt_utc + timedelta(hours=1)).astimezone(LOS_ANGELES))\n"
202+ "2020-11-01 01:00:00-08:00"
171203
172204#: ../../library/zoneinfo.rst:92
173205msgid "Data sources"
174206msgstr "데이터 소스"
175207
176208#: ../../library/zoneinfo.rst:94
177- #, fuzzy
178209msgid ""
179210"The ``zoneinfo`` module does not directly provide time zone data, and "
180211"instead pulls time zone information from the system time zone database or"
@@ -186,8 +217,8 @@ msgid ""
186217":class:`ZoneInfo` will raise :exc:`ZoneInfoNotFoundError`."
187218msgstr ""
188219"``zoneinfo`` 모듈은 시간대 데이터를 직접 제공하지 않고, 시스템 시간대 데이터베이스나 자사(first-party) "
189- "PyPI 패키지 `tzdata`_ \\ (있다면)에서 시간대 정보를 가져옵니다. 특히 윈도우 시스템을 포함한 일부 시스템에는 사용 "
190- "가능한 IANA 데이터베이스가 없어서, 시간대 데이터가 필요한 플랫폼 간 호환성을 목표로 하는 프로젝트는 tzdata에 대한 "
220+ "PyPI 패키지 :pypi: `tzdata`\\ (있다면)에서 시간대 정보를 가져옵니다. 특히 윈도우 시스템을 포함한 일부 시스템에는 "
221+ "사용 가능한 IANA 데이터베이스가 없어서, 시간대 데이터가 필요한 플랫폼 간 호환성을 목표로 하는 프로젝트는 tzdata에 대한 "
191222"종속성을 선언하는 것이 좋습니다. 시스템 데이터나 tzdata를 모두 사용할 수 없으면, :class:`ZoneInfo`\\ 에 대한"
192223" 모든 호출은 :exc:`ZoneInfoNotFoundError`\\ 를 발생시킵니다."
193224
@@ -235,7 +266,6 @@ msgid "Compile-time configuration"
235266msgstr "컴파일 시간 구성"
236267
237268#: ../../library/zoneinfo.rst:125
238- #, fuzzy
239269msgid ""
240270"The default :data:`TZPATH` includes several common deployment locations "
241271"for the time zone database (except on Windows, where there are no \" well-"
@@ -249,8 +279,8 @@ msgstr ""
249279"기본 :data:`TZPATH`\\ 에는 시간대 데이터베이스에 대한 몇 가지 일반적인 배포 위치가 포함되어 있습니다 (윈도우는 "
250280"예외인데, 시간대 데이터에 대한 \" 잘 알려진\" 위치가 없습니다). POSIX 시스템에서, 시스템 시간대 데이터가 배치된 위치를 "
251281"알고 있는 다운 스트림 배포자와 소스에서 파이썬을 빌드하는 사람은 컴파일 시간 옵션 ``TZPATH``\\ (또는, 더 가능성 있는,"
252- " `` configure`` 플래그 `` --with-tzpath`` )를 지정하여 기본 시간대 경로를 변경할 수 있습니다. "
253- ":data:`os.pathsep`\\ 으로 구분된 문자열이어야 합니다."
282+ " :option:` configure flag --with-tzpath <--with-tzpath>` )를 지정하여 기본 시간대 경로를"
283+ " 변경할 수 있습니다. :data:`os.pathsep`\\ 으로 구분된 문자열이어야 합니다."
254284
255285#: ../../library/zoneinfo.rst:134
256286msgid ""
@@ -335,6 +365,9 @@ msgid ""
335365"b = ZoneInfo(key)\n"
336366"assert a is b"
337367msgstr ""
368+ "a = ZoneInfo(key)\n"
369+ "b = ZoneInfo(key)\n"
370+ "assert a is b"
338371
339372#: ../../library/zoneinfo.rst:188
340373msgid ""
@@ -422,14 +455,13 @@ msgstr ""
422455"``only_keys``\\ 에 전달되었지만, 캐시에서 찾을 수 없는 키는 무시됩니다."
423456
424457#: ../../library/zoneinfo.rst:243
425- #, fuzzy
426458msgid ""
427459"Invoking this function may change the semantics of datetimes using "
428460"``ZoneInfo`` in surprising ways; this modifies module state and thus may "
429461"have wide-ranging effects. Only use it if you know that you need to."
430462msgstr ""
431- "이 함수를 호출하면 예기치 못한 방식으로 ``ZoneInfo``\\ 를 사용하는 날짜 시간의 의미를 변경할 수 있습니다; 이는 "
432- "프로세스 전체의 전역 상태를 수정하므로 광범위한 영향을 미칠 수 있습니다. 필요한 경우에만 사용하십시오."
463+ "이 함수를 호출하면 예기치 못한 방식으로 ``ZoneInfo``\\ 를 사용하는 날짜 시간의 의미를 변경할 수 있습니다; 이는 모듈 "
464+ "상태를 수정하므로 광범위한 영향을 미칠 수 있습니다. 필요한 경우에만 사용하십시오."
433465
434466#: ../../library/zoneinfo.rst:248
435467msgid "The class has one attribute:"
@@ -488,6 +520,13 @@ msgid ""
488520">>> f\" {dt.isoformat()} [{dt.tzinfo}]\" \n"
489521"'2020-04-01T03:15:00+12:00 [Pacific/Kwajalein]'"
490522msgstr ""
523+ ">>> zone = ZoneInfo(\" Pacific/Kwajalein\" )\n"
524+ ">>> str(zone)\n"
525+ "'Pacific/Kwajalein'\n"
526+ "\n"
527+ ">>> dt = datetime(2020, 4, 1, 3, 15, tzinfo=zone)\n"
528+ ">>> f\" {dt.isoformat()} [{dt.tzinfo}]\" \n"
529+ "'2020-04-01T03:15:00+12:00 [Pacific/Kwajalein]'"
491530
492531#: ../../library/zoneinfo.rst:283
493532msgid ""
@@ -539,6 +578,10 @@ msgid ""
539578">>> a is b\n"
540579"True"
541580msgstr ""
581+ ">>> a = ZoneInfo(\" Europe/Berlin\" )\n"
582+ ">>> b = pickle.loads(europe_berlin_pkl)\n"
583+ ">>> a is b\n"
584+ "True"
542585
543586#: ../../library/zoneinfo.rst:314
544587msgid ""
@@ -561,6 +604,10 @@ msgid ""
561604">>> a is b\n"
562605"False"
563606msgstr ""
607+ ">>> a = ZoneInfo(\" Europe/Berlin\" )\n"
608+ ">>> b = pickle.loads(europe_berlin_pkl_nc)\n"
609+ ">>> a is b\n"
610+ "False"
564611
565612#: ../../library/zoneinfo.rst:328
566613msgid ""
0 commit comments