0
What is the basic difference between strftime() and strptime() of Python datetime modules?
3 Antworten
+ 2
https://www.programmersought.com/article/93604311886/#:~:text=1.,into%20decomposition%20time%20format%3A%202.
+ 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!
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