Skip to content

Commit c7e67ed

Browse files
committed
Timezone
1 parent cf561d1 commit c7e67ed

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ Datetime
462462

463463
```python
464464
from datetime import date, time, datetime, timedelta
465-
from dateutil.tz import UTC, gettz
465+
from dateutil.tz import UTC, tzlocal, gettz
466466
```
467467

468468
### Constructors
@@ -486,7 +486,11 @@ from dateutil.tz import UTC, gettz
486486
### Timezone
487487
```python
488488
<tz> = UTC # UTC timezone.
489+
<tz> = tzlocal() # Local timezone.
489490
<tz> = gettz('<Cont.>/<City>') # Timezone from 'Continent/City_Name' str.
491+
```
492+
493+
```python
490494
<DTa> = <DT>.astimezone(<tz>) # Datetime, converted to passed timezone.
491495
<Ta/DTa> = <T/DT>.replace(tzinfo=<tz>) # Unconverted object with new timezone.
492496
```

0 commit comments

Comments
 (0)