Skip to content

Commit 6870769

Browse files
committed
Datetime
1 parent 66fffae commit 6870769

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ from dateutil.tz import UTC, gettz
494494
### Encode
495495
```python
496496
<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.
498498
<D/DTn> = D/DT.fromordinal(<int>) # D/DTn from days since Christ.
499499
<DTa> = DT.fromtimestamp(<real>, <tz>) # DTa from seconds since Epoch in tz time.
500500
```
@@ -512,8 +512,8 @@ from dateutil.tz import UTC, gettz
512512
### Format
513513
```python
514514
>>> dt = datetime.strptime('2015-05-14 23:39:00.00 +0200', '%Y-%m-%d %H:%M:%S.%f %z')
515-
>>> dt.strftime("%A %dth %B '%y, %I:%m%p %Z")
516-
"Thursday 14th May '15, 11:05PM UTC+02:00"
515+
>>> dt.strftime("%A %dth %B '%y, %I:%M%p %Z")
516+
"Thursday 14th May '15, 11:39PM UTC+02:00"
517517
```
518518

519519
#### Rest of the codes:

0 commit comments

Comments
 (0)