majiidd / persiantools

Jalali date and datetime with other tools
MIT License
166 stars 20 forks source link

strptime implementation #13

Closed yeganehkordi closed 2 years ago

yeganehkordi commented 3 years ago

Hi there, Since there is no implementation for strptime function, I wonder is there any alternative way for converting string to date object?

ghost commented 3 years ago

Hi, @majiidd I have implemented strptime for JalaliDateTime class. I would make a pull request. hope it helps the progression of this good project.

majiidd commented 2 years ago

Hi. You can use strptime function from v2.2.0. like this: JalaliDateTime.strptime("1400-01-01 02:00:10.000553 PM", "%Y-%m-%d %I:%M:%S.%f %p")