|
|
@ -489,10 +489,10 @@ import pytz |
|
|
|
```python |
|
|
|
<tz> = pytz.utc # UTC timezone. |
|
|
|
<tz> = pytz.timezone('<Cont.>/<City>') # Timezone from 'Continent/City' string. |
|
|
|
<DTa> = <DT>.astimezone(<tz>) # Converts datetime to passed timezone. |
|
|
|
<Ta/DTa> = <T/DT>.replace(tzinfo=<tz>) # Changes timezone without conversion. |
|
|
|
<TD> = <T/DT>.utcoffset() # Returns timezone's current offset from UTC. |
|
|
|
<TD> = <T/DT>.dst() # Returns daylight saving time offset. |
|
|
|
<DTa> = <DT>.astimezone(<tz>) # Datetime converted to passed timezone. |
|
|
|
<Ta/DTa> = <T/DT>.replace(tzinfo=<tz>) # Unconverted object with new timezone. |
|
|
|
<TD> = <T/DT>.utcoffset() # Timezone's current offset from UTC. |
|
|
|
<TD> = <T/DT>.dst() # Daylight saving time offset. |
|
|
|
``` |
|
|
|
|
|
|
|
### Encode |
|
|
|