Browse Source

Datetime fix

pull/28/head
Jure Šorn 6 years ago
parent
commit
7ef8138ca5
1 changed files with 1 additions and 1 deletions
  1. 2
      README.md

2
README.md

@ -487,7 +487,7 @@ import pytz
### Timezone ### Timezone
```python ```python
<tz> = pytz.utc # UTC timezone. <tz> = pytz.utc # UTC timezone.
<tz> = pytz.timezone('<Cont.>/<City>') # Timezone from 'Continent/City' string.
<tz> = pytz.timezone('<Cont.>/<City>') # Timezone from 'Continent/City_Name' str.
<DTa> = <DT>.astimezone(<tz>) # Datetime, converted to passed timezone. <DTa> = <DT>.astimezone(<tz>) # Datetime, converted to passed timezone.
<Ta/DTa> = <T/DT>.replace(tzinfo=<tz>) # Unconverted object with new timezone. <Ta/DTa> = <T/DT>.replace(tzinfo=<tz>) # Unconverted object with new timezone.
``` ```

Loading…
Cancel
Save