Hello,
In a Microsoft email header, I find:
x-ms-exchange-organization-aadsender-creationtime: 637903162460000000
This looks like a filetime but converts to year 3622. I must be doing something wrong. Is there a re-ordering or some other step needed?
python code:
import datetime
‘’’ Define the timestamp and epoch’‘’
timestamp = 637903162460000000
epoch = datetime.datetime(1601, 1, 1)
‘’‘Calculate the seconds since the epoch’‘’
seconds_since_epoch = timestamp / 10**7
‘’’ Add seconds to epoch to get the actual time’‘’
actual_time = epoch + datetime.timedelta(seconds=seconds_since_epoch)
print(“Datetime:”, actual_time)