Browse Source

Datetime fix

pull/28/head
Jure Šorn 5 years ago
parent
commit
6a5a76fca9
1 changed files with 4 additions and 4 deletions
  1. 8
      README.md

8
README.md

@ -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

Loading…
Cancel
Save