Skip to content

Commit eb122ff

Browse files
committed
Datetime fix
1 parent 65ac2fc commit eb122ff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,8 @@ import pytz
487487

488488
### Timezone
489489
```python
490-
<tz> = pytz.timezone('<Cont.>/<City>') # Use 'pytz.utc' for UTC.
490+
<tz> = pytz.utc # UTC timezone.
491+
<tz> = pytz.timezone('<Cont.>/<City>') # Timezone from 'Continent/City' string.
491492
<DTa> = <DT>.astimezone(<tz>) # Converts datetime to passed timezone.
492493
<Ta/DTa> = <T/DT>.replace(tzinfo=<tz>) # Changes timezone without conversion.
493494
<TD> = <T/DT>.utcoffset() # Returns timezone's current offset from UTC.

0 commit comments

Comments
 (0)