| |

VerySource

 Forgot password?
 Register
Search
View: 717|Reply: 2

How to get the system time is the number of seconds from that time in 1970 to the present.

[Copy link]

3

Threads

10

Posts

10.00

Credits

Newbie

Rank: 1

Credits
10.00

 China

Post time: 2020-1-10 18:00:01
| Show all posts |Read mode
I remember the calculation of system time in unix is ​​using long int in seconds from 1970 to the present
So it should be like this in windows
So how to get this long int
Reply

Use magic Report

0

Threads

25

Posts

14.00

Credits

Newbie

Rank: 1

Credits
14.00

 China

Post time: 2020-1-13 12:45:02
| Show all posts
GetGmtTm
Reply

Use magic Report

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 Invalid IP Address

Post time: 2020-1-23 18:54:01
| Show all posts
mktime
gmtime
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list