Convert timestamp to time - string

I mean, it kind of is but it’s process.

you need to convert the string of numbers and letters into a valid datetime object which is what strptime does. Then you need to extract the hour and minute data out of the datetime object which is what the rest is doing.

or you can just extract the data you want out of the string itself using python string manipulation methods as 123 suggested. Which will work just fine as long as the string you are manipulating is alwaqys in the same format.

you can look here for more info on how datetimes work. I’ve been told it’s fairly helpful. :wink:

1 Like