Well ~ Timestamp

Source: Internet
Author: User

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 ~

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.