Convert epoch time to human readable time

Don’t try to use a language model as a calculator.

You can do this conversion yourself like this in a JavaScript console,

Date(1740819745000).toLocaleString();

Or using Python like this,

def convert_epoch(ms):
    return datetime.fromtimestamp(ms / 1000).strftime('%Y-%m-%d %H:%M:%S')

If you need 4o to be able to do it for some reason, give it the function to convert from epoch time to human readable time and all it to use it.

5 Likes