diff --git a/README.md b/README.md index d39c034..6c96484 100644 --- a/README.md +++ b/README.md @@ -617,9 +617,6 @@ from dateutil.tz import UTC, tzlocal, gettz, resolve_imaginary = UTC # UTC timezone. London without DST. = tzlocal() # Local timezone. Also gettz(). = gettz('/') # 'Continent/City_Name' timezone or None. -``` - -```python =
.astimezone() # Datetime, converted to passed timezone. = .replace(tzinfo=) # Unconverted object with new timezone. ``` diff --git a/index.html b/index.html index aa5b611..7e3aa8d 100644 --- a/index.html +++ b/index.html @@ -666,14 +666,13 @@ shuffle(<list>)
  • To extract time use '<DTn>.time()', '<DTa>.time()' or '<DTa>.timetz()'.
-

Timezone

<tzinfo> = UTC                              # UTC timezone. London without DST.
+

Timezone

<tzinfo> = UTC                              # UTC timezone. London without DST.
 <tzinfo> = tzlocal()                        # Local timezone. Also gettz().
 <tzinfo> = gettz('<Cont.>/<City>')          # 'Continent/City_Name' timezone or None.
+<DTa>    = <DT>.astimezone(<tzinfo>)        # Datetime, converted to passed timezone.
+<Ta/DTa> = <T/DT>.replace(tzinfo=<tzinfo>)  # Unconverted object with new timezone.
 
-
<DTa>    = <DT>.astimezone(<tzinfo>)        # Datetime, converted to passed timezone.
-<Ta/DTa> = <T/DT>.replace(tzinfo=<tzinfo>)  # Unconverted object with new timezone.
-

Encode

<D/T/DT> = D/T/DT.fromisoformat('<iso>')    # Object from ISO string. Raises ValueError.
 <DT>     = DT.strptime(<str>, '<format>')   # Datetime from str, according to format.
 <D/DTn>  = D/DT.fromordinal(<int>)          # D/DTn from days since Christ, at midnight.