Hello,
I was reading Python documentation and testing time module/library and I
saw that the time documentation doesn't have capital %D which makes the
code view pattern like MM/DD/YY
Since I don't know if it's a bug or just a mistake that this directive
wasn't put in the table.
Or maybe I misread something and it should be like it is.
I attach the code down below
Best Regards,
Karox
import time
time_object = time.localtime()
print(time_object, "\n")
vv
local_time = time.strftime("%B %d %Y %H:%M:%S", time_object)
print(local_time, "\n")
vv
local_time = time.strftime("%B %D %Y %H:%M:%S %M", time_object)
print(local_time, "\n")
# OUTPUT:
time.struct_time(tm_year=2023, tm_mon=6, tm_mday=29, tm_hour=21, tm_min=21,
tm_sec=48, tm_wday=3, tm_yday=180, tm_isdst=1)
June 29 2023 21:21:48
June 06/29/23 2023 21:21:48 21