diff --git a/README.md b/README.md index 200b9ab..35de87c 100644 --- a/README.md +++ b/README.md @@ -461,9 +461,8 @@ Datetime * **If object is naive it is presumed to be in system's timezone.** ```python -# $ pip3 install pytz from datetime import date, time, datetime, timedelta -import pytz +from dateutil.tz import UTC, gettz ``` ### Constructors @@ -486,8 +485,8 @@ import pytz ### Timezone ```python - = pytz.utc # UTC timezone. - = pytz.timezone('/') # Timezone from 'Continent/City_Name' str. + = UTC # UTC timezone. + = gettz('/') # Timezone from 'Continent/City_Name' str. =
.astimezone() # Datetime, converted to passed timezone. = .replace(tzinfo=) # Unconverted object with new timezone. ```