Skip to content

Commit b195702

Browse files
committed
Datetime fix
1 parent c5cfb61 commit b195702

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

README.md

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

513513
### Format
514514
```python
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"
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"
518518
```
519519

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

521525
Arguments
522526
---------

0 commit comments

Comments
 (0)