diff --git a/README.md b/README.md index db54a55..a483be9 100644 --- a/README.md +++ b/README.md @@ -512,17 +512,14 @@ import pytz ### Format ```python ->>> dt = datetime.strptime('2015-05-14 23:39:00', '%Y-%m-%d %H:%M:%S') ->>> dt.strftime("%dth %B '%y %A %I%p") -"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" ``` #### Rest of the codes: * **`'b'` - Month, abbreviated name.** * **`'a'` - Weekday, abbreviated name.** -* **`'f'` - Microseconds, 6 digits.** -* **`'z'` - Timezone offset, ± and 4 digits.** -* **`'Z'` - Timezone name.** Arguments