We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce969e2 commit 91b5548Copy full SHA for 91b5548
README.md
@@ -513,16 +513,13 @@ import pytz
513
### Format
514
```python
515
>>> dt = datetime.strptime('2015-05-14 23:39:00', '%Y-%m-%d %H:%M:%S')
516
+>>> dt.strftime("%dth %B '%y %A %I%p")
517
+"14th May '15 Thursday 11PM"
518
```
519
520
#### Rest of the codes:
-* **`'y'` - Year, 2 digits.**
521
* **`'b'` - Month, abbreviated name.**
-* **`'B'` - Month, full name.**
522
* **`'a'` - Weekday, abbreviated name.**
523
-* **`'A'` - Weekday, full name.**
524
-* **`'I'` - Hours, 2 digits, 12 hours.**
525
-* **`'p'` - AM/PM.**
526
* **`'f'` - Microseconds, 6 digits.**
527
* **`'z'` - Timezone offset, ± and 4 digits.**
528
* **`'Z'` - Timezone name.**
0 commit comments