DateTime in Unity as a very large number

Itamar Kerbel

I'm trying to understand a saved game file format. The game is written with Unity.(not sure that it's related) The file is a JSON file and the timestamp is:

"Timestamp": 637015624965194930,

This translates to Aug 16th 2019 at 14:28

another example is:

"Timestamp": 637014628610503310,

This translates to Aug 15th 2019 at 10:47

I figured that subtracting the 2 numbers will give me the difference and it kind of works. It seems that the time is measured in 1/10000000 of a second.

Can anyone figure out how to convert this to EPOCH time?

AntiHeadshot

This time is 1/10000000 of a second since Jan 1st 0001

It is the standard time format used by .NET

so you can subtract 621355968000000000 (Jan 1st 1970) and divide by 10000000 to get seconds since EPOCH.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Storing a very, very large number theoretical

Mongoose - Increment very large number

Kafka very large number of topics?

Summing the digits of a very large number

Convert very large number stored as string into number

Feeling of very large skybox in Unity and Oculus Rift

How to assign a very large number to BigInteger?

how to handle very large number in float

How to convert a very large decimal number to a string?

Anova test in Python with a very large number of Groups

Pandas pivot table with very large number of columns

Bigquery subtraction on very large number not working as expected

Searching through a slice with a very large number of elements

How to store a very large number in c++

Find Rightmost unset bit of a very large number

Figure out if a very large number is divisible by another

printing a very large number in python takes forever

How can I store a very very large number in JavaScript?

How to calculate and write a very, very large number to a file in python?

How to Convert very large Decimal number to Factorial number system?

C++ program outputs a very large number instead of object

Quickly convert a very large number of lists of strings into ndarray

Fastest way to count exact number of rows in a very large table?

Javascript "toLocaleString()" function chnages decimals to zero when number is very large

square_root very large number in C until < 1000

My algorithm for calculating the modulo of a very large fibonacci number is too slow

cat a very large number of files together in correct order

AWS: Speed up copy of large number of very small files

postgresql: Copy a column into another column when the number of rows are very large

TOP Ranking

HotTag

Archive