AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   How can i get real time (for ex. - from ntp server) (https://forums.alliedmods.net/showthread.php?t=165286)

SideX 08-21-2011 12:28

How can i get real time (for ex. - from ntp server)
 
Subject.

pheadxdll 08-21-2011 12:39

Re: How can i get real time (for ex. - from ntp server)
 
FormatTime.

You'll have to use sockets and send a request if you want to talk to a NTP server.

berni 08-21-2011 16:31

Re: How can i get real time (for ex. - from ntp server)
 
Just keep sure that your system time is getting syncronized by a timeservice.
Both, windows and linux can do this easily. Then just use the Format or the GetTime() function like pheadxdll said.

DarkEnergy 08-21-2011 16:35

Re: How can i get real time (for ex. - from ntp server)
 
sockets + query some web service


All times are GMT -4. The time now is 07:01.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.