File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -489,10 +489,10 @@ import pytz
489
489
``` python
490
490
< tz> = pytz.utc # UTC timezone.
491
491
< tz> = pytz.timezone(' <Cont.>/<City>' ) # Timezone from 'Continent/City' string.
492
- < DTa> = < DT > .astimezone(< tz> ) # Converts datetime to passed timezone.
493
- < Ta/ DTa> = < T/ DT > .replace(tzinfo = < tz> ) # Changes timezone without conversion .
494
- < TD > = < T/ DT > .utcoffset() # Returns timezone 's current offset from UTC.
495
- < TD > = < T/ DT > .dst() # Returns daylight saving time offset.
492
+ < DTa> = < DT > .astimezone(< tz> ) # Datetime converted to passed timezone.
493
+ < Ta/ DTa> = < T/ DT > .replace(tzinfo = < tz> ) # Unconverted object with new timezone .
494
+ < TD > = < T/ DT > .utcoffset() # Timezone 's current offset from UTC.
495
+ < TD > = < T/ DT > .dst() # Daylight saving time offset.
496
496
```
497
497
498
498
### Encode
You can’t perform that action at this time.
0 commit comments