Recently, some online games have emerged. However, it's not a lot of time to play because of the tight schedule at work.
So I want to build a small plug-in. I have no experience in the past. I checked some stuff on the Internet.
So we can analyze it. (Let alone anything else... Transfer subject)
Some numbers, such as 1240117443, were found during analysis.
I don't quite understand. I checked it online and studied it ~~ Ah ~~ Timestamp ~~
Depend on ~ What kind of things ~ It seems that I have heard of it.
So, the root of it is to beat it.
What is the timestamp first? Let alone the shit term. It is a number that records time.
Why can't I see it directly? Because it is used for internationalization (personal understanding ).
How can we develop an internationalization method? Is to find a standard time. Do you know the prime meridian?
That is, the standard time. First, convert the time in different time zones around the world into the standard time.
For example, Beijing time requires 8 hours. (UTC + 8? Poor geography ~ -_-!)
Let's look at the image as an example. For example, it's 21:59:15.
Now the standard time is: 13:59:15
Well, do you understand? I understand the weak ones like me.
Let's take a look at the mess of numbers.
In fact, it is a second difference.
Well, the following primary school calculation questions:
| 1 minute |
60 seconds |
| 1 hour |
3600 seconds |
| 1 day |
86400 seconds |
| 1 week |
604800 seconds |
| January (30.44 days) |
2629743 seconds |
| 1 year (365.24 days) |
31556926 seconds |
However, it seems that it is not accurate to include such data directly ~~~~!!!
It is actually the difference between the second at 00:00:00 and the second ~~ Remember the standard time ~
Next section C #CodeDemo:
Datetime standertime=NewDatetime (1970,1,1);
LongTimestemp =(Datetime. Now. ticks-Standertime. Ticks)/10000000-8*60*60; // Minus 8 hours (Beijing)
Timestemp ~