0

What is the basic difference between strftime() and strptime() of Python datetime modules?

30th Apr 2021, 9:44 PM
Gayatri C
Gayatri C - avatar
3 Antworten
+ 2
https://www.programmersought.com/article/93604311886/#:~:text=1.,into%20decomposition%20time%20format%3A%202.
30th Apr 2021, 9:55 PM
Matias
Matias - avatar
+ 2
Thanks Matiyas for sharing this. Have used these functions in one of my codes, but again it's lil confusing. https://code.sololearn.com/cnegJuV2E3mw/?ref=app It needs practice to get used to it. I found few more good articles too in the page you shared. Thanks for that!
30th Apr 2021, 10:03 PM
Gayatri C
Gayatri C - avatar
0
Jan Markus , Thank you ! I have tried using strptime with datetime object, but it didn't work. from datetime import datetime Not working for strptime Had to, import time And use time object's struct_time fields to fetch corresponding details
30th Apr 2021, 10:06 PM
Gayatri C
Gayatri C - avatar