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 91b5548 commit d5e8f12Copy full SHA for d5e8f12
README.md
@@ -512,17 +512,14 @@ import pytz
512
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"
+>>> dt = datetime.strptime('2015-05-14 23:39:00.00 +0200', '%Y-%m-%d %H:%M:%S.%f %z')
+>>> dt.strftime("%A %dth %B '%y, %I:%m%p %Z")
+"Thursday 14th May '15, 11:05PM UTC+02:00"
518
```
519
520
#### Rest of the codes:
521
* **`'b'` - Month, abbreviated name.**
522
* **`'a'` - Weekday, abbreviated name.**
523
-* **`'f'` - Microseconds, 6 digits.**
524
-* **`'z'` - Timezone offset, ± and 4 digits.**
525
-* **`'Z'` - Timezone name.**
526
527
528
Arguments
0 commit comments