I have an epoch
time that is in Seconds.PartOfSecond
format e.g. 1581218900.17436
. How can this be used within time.strftime()
?
import time
curTime = time.time()
# Following is not correct but gives idea what i'm looking for
formattedTime = time.strftime('%A %B %e, %Y %t', curTime)
Update The answer this has been closed for is not imo an obvious replacement: how would one know we need to convert to datetime.datetime
? The answer below is more to the point.