Skip to content

Commit 6a5a76f

Browse files
committed
Datetime fix
1 parent eb122ff commit 6a5a76f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -489,10 +489,10 @@ import pytz
489489
```python
490490
<tz> = pytz.utc # UTC timezone.
491491
<tz> = pytz.timezone('<Cont.>/<City>') # Timezone from 'Continent/City' string.
492-
<DTa> = <DT>.astimezone(<tz>) # Converts datetime to passed timezone.
493-
<Ta/DTa> = <T/DT>.replace(tzinfo=<tz>) # Changes timezone without conversion.
494-
<TD> = <T/DT>.utcoffset() # Returns timezone's current offset from UTC.
495-
<TD> = <T/DT>.dst() # Returns daylight saving time offset.
492+
<DTa> = <DT>.astimezone(<tz>) # Datetime converted to passed timezone.
493+
<Ta/DTa> = <T/DT>.replace(tzinfo=<tz>) # Unconverted object with new timezone.
494+
<TD> = <T/DT>.utcoffset() # Timezone's current offset from UTC.
495+
<TD> = <T/DT>.dst() # Daylight saving time offset.
496496
```
497497

498498
### Encode

0 commit comments

Comments
 (0)