Using module datetime

Module datetime provides classes for manipulating date and time in more object oriented way.


import datetime
datetime.datetime.fromtimestamp(1500931866.4868).isoformat()
'2017-07-24T23:31:06.486800'

Tags

Related Articles

This website uses cookies to ensure you get the best experience on our website. More info