human
Python convert long to date
assistant
Here is some code to convert long int `myNumber` into date and time represented in the the string format '%Y-%m-%d %H:%M:%S'

datetime.datetime.fromtimestamp(myNumber).strftime('%Y-%m-%d %H:%M:%S')

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.