From b195702e77c1c13294866ba59bd98c21e3b6c03e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Fri, 15 Mar 2019 06:43:28 +0100 Subject: [PATCH] Datetime fix --- README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9a86518..1f763fa 100644 --- a/README.md +++ b/README.md @@ -512,11 +512,15 @@ import pytz ### Format ```python ->>> dt = datetime.strptime('2015-06-14 23:39:00.00 +0200', '%Y-%m-%d %H:%M:%S.%f %z') ->>> dt.strftime("%a %dth %B '%y, %I:%m%p %Z") -"Sun 14th June '15, 11:06PM UTC+02:00" +>>> 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.** + Arguments ---------