Closed cyrbil closed 5 months ago
The timestamp is from C# binary representation which starts at 0001-01-01T00:00:00Z
and is represented as 100 nanoseconds where the Python timestamp starts at 1970-01-01T00:00:00Z
and is in seconds.
def convert_timestamp(ts):
unix_ts_offset = 621355968000000000 # 100th of nanoseconds from 0001-01-01T00:00:00Z to 1970-01-01T00:00:00Z
return datetime.datetime.fromtimestamp((ts - unix_ts_offset ) / 10000000)
convert_timestamp(638424028570890000)
# gives 2024-02-01 16:47:37.089000
Common issues before reporting
Have you modified the save files No
Have you tried the latest release Yes
Describe the bug Timestamp is u64 how to find the real date? It's too small to just be a simple timestamp as it gives me a date in the 90s.
Has anyone tried to convert the value?
Copy of .sav or .sav.json files
Example: