how is it possible to convert a dateime string into datetime format in micropython?
I would like to compare an actual timestamp with a timestamp priveous stored in string format.
How is that possible in micropython if datetime is not available?
In Python it is possible like this:
Code: Select all
from datetime import datetime
datetime_string = '01/08/22 10:47:26'
datetime_object = datetime.strptime(datetime_string, '%m/%d/%y %H:%M:%S')
print(datetime_object)