time_in_hexa_format_as_string = '0x278a51da'
def get_time_stamp(value_for_time):
import time
date = time.ctime(value_for_time)
return "Time from archive:", date
print(get_time_stamp(int(time_in_hexa_format_as_string)))
error:
Traceback (most recent call last):
line 103, in <module>
print(get_time_stamp(int(time_in_hexa_format_as_string)))
ValueError: invalid literal for int() with base 10: '0x278a51da'