We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf561d1 commit c7e67edCopy full SHA for c7e67ed
README.md
@@ -462,7 +462,7 @@ Datetime
462
463
```python
464
from datetime import date, time, datetime, timedelta
465
-from dateutil.tz import UTC, gettz
+from dateutil.tz import UTC, tzlocal, gettz
466
```
467
468
### Constructors
@@ -486,7 +486,11 @@ from dateutil.tz import UTC, gettz
486
### Timezone
487
488
<tz> = UTC # UTC timezone.
489
+<tz> = tzlocal() # Local timezone.
490
<tz> = gettz('<Cont.>/<City>') # Timezone from 'Continent/City_Name' str.
491
+```
492
+
493
+```python
494
<DTa> = <DT>.astimezone(<tz>) # Datetime, converted to passed timezone.
495
<Ta/DTa> = <T/DT>.replace(tzinfo=<tz>) # Unconverted object with new timezone.
496
0 commit comments