File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -494,7 +494,7 @@ from dateutil.tz import UTC, gettz
494
494
### Encode
495
495
``` python
496
496
< D/ T/ DT > = D/ T/ DT .fromisoformat(' <iso>' ) # Object from ISO string.
497
- < DT > = DT .strptime(< str > , ' <format>' ) # Datetime from string , according to format.
497
+ < DT > = DT .strptime(< str > , ' <format>' ) # Datetime from str , according to format.
498
498
< D/ DTn> = D/ DT .fromordinal(< int > ) # D/DTn from days since Christ.
499
499
< DTa> = DT .fromtimestamp(< real> , < tz> ) # DTa from seconds since Epoch in tz time.
500
500
```
@@ -512,8 +512,8 @@ from dateutil.tz import UTC, gettz
512
512
### Format
513
513
``` python
514
514
>> > dt = datetime.strptime(' 2015-05-14 23:39:00.00 +0200' , ' %Y-%m-%d %H:%M:%S.%f %z' )
515
- >> > dt.strftime(" %A %d th %B '%y, %I:%m %p %Z" )
516
- " Thursday 14th May '15, 11:05PM UTC+02:00"
515
+ >> > dt.strftime(" %A %d th %B '%y, %I:%M %p %Z" )
516
+ " Thursday 14th May '15, 11:39PM UTC+02:00"
517
517
```
518
518
519
519
#### Rest of the codes:
You can’t perform that action at this time.
0 commit comments