Timestamp.tz_localize() Convert naive Timestamp to local time zone, or remove timezone from tz-aware Timestamp.
| Parameters: |
tz : string, pytz.timezone, dateutil.tz.tzfile or None Time zone for time which Timestamp will be converted to. None will remove timezone holding local time. ambiguous : bool, ‘NaT’, default ‘raise’
that this flag is only applicable for ambiguous fall dst dates) - ‘NaT’ will return NaT for an ambiguous time - ‘raise’ will raise an AmbiguousTimeError for an ambiguous time errors : ‘raise’, ‘coerce’, default ‘raise’
|
|---|---|
| Returns: |
localized : Timestamp |
| Raises: |
TypeError If the Timestamp is tz-aware and tz is not None. |
© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
http://pandas.pydata.org/pandas-docs/version/0.22.0/generated/pandas.Timestamp.tz_localize.html