Skip to content

Commit c5cfb61

Browse files
committed
Datetime fix
1 parent 7ef8138 commit c5cfb61

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

README.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -512,15 +512,11 @@ import pytz
512512

513513
### Format
514514
```python
515-
>>> dt = datetime.strptime('2015-05-14 23:39:00.00 +0200', '%Y-%m-%d %H:%M:%S.%f %z')
516-
>>> dt.strftime("%A %dth %B '%y, %I:%m%p %Z")
517-
"Thursday 14th May '15, 11:05PM UTC+02:00"
515+
>>> dt = datetime.strptime('2015-06-14 23:39:00.00 +0200', '%Y-%m-%d %H:%M:%S.%f %z')
516+
>>> dt.strftime("%a %dth %B '%y, %I:%m%p %Z")
517+
"Sun 14th June '15, 11:06PM UTC+02:00"
518518
```
519519

520-
#### Rest of the codes:
521-
* **`'b'` - Month, abbreviated name.**
522-
* **`'a'` - Weekday, abbreviated name.**
523-
524520

525521
Arguments
526522
---------

0 commit comments

Comments
 (0)