@@ -1244,7 +1244,7 @@ the quarter end:
1244
1244
Time Zone Handling
1245
1245
------------------
1246
1246
1247
- Pandas provides rich support for working with timestamps in different time zones using ``pytz `` and ``dateutil `` libraries.
1247
+ Pandas provides rich support for working with timestamps in different time zones using ``pytz `` and ``dateutil `` libraries.
1248
1248
``dateutil `` support is new [in 0.14.1] and currently only supported for fixed offset and tzfile zones. The default library is ``pytz ``.
1249
1249
Support for ``dateutil `` is provided for compatibility with other applications e.g. if you use ``dateutil `` in other python packages.
1250
1250
@@ -1257,13 +1257,14 @@ By default, pandas objects are time zone unaware:
1257
1257
1258
1258
To supply the time zone, you can use the ``tz `` keyword to ``date_range `` and
1259
1259
other functions. Dateutil time zone strings are distinguished from ``pytz ``
1260
- time zones by starting with ``dateutil/ ``. In ``pytz `` you can find a list of
1261
- common (and less common) time zones using ``from pytz import common_timezones, all_timezones ``.
1262
- ``dateutil `` uses the OS timezones so there isn't a fixed list available. For
1260
+ time zones by starting with ``dateutil/ ``.
1261
+
1262
+ - In ``pytz `` you can find a list of common (and less common) time zones using ``from pytz import common_timezones, all_timezones ``.
1263
+ - ``dateutil `` uses the OS timezones so there isn't a fixed list available. For
1263
1264
common zones, the names are the same as ``pytz ``.
1264
1265
1265
1266
.. ipython :: python
1266
-
1267
+
1267
1268
# pytz
1268
1269
rng_utc = date_range(' 3/6/2012 00:00' , periods = 10 , freq = ' D' , tz = ' UTC' )
1269
1270
rng_utc.tz
@@ -1314,7 +1315,7 @@ tz-aware data to another time zone:
1314
1315
.. warning ::
1315
1316
Be very wary of conversions between libraries as ``pytz `` and ``dateutil ``
1316
1317
may have different definitions of the time zones. This is more of a problem for
1317
- unusual timezones than for 'standard' zones like ``US/Eastern ``.
1318
+ unusual timezones than for 'standard' zones like ``US/Eastern ``.
1318
1319
1319
1320
Under the hood, all timestamps are stored in UTC. Scalar values from a
1320
1321
``DatetimeIndex `` with a time zone will have their fields (day, hour, minute)
0 commit comments