AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   how to get the time (current Unix timestamp) ? (https://forums.alliedmods.net/showthread.php?t=56199)

lucky109 06-08-2007 18:02

how to get the time (current Unix timestamp) ?
 
i knew this for PHP

Code:

"time — Return current Unix timestamp"

int time ( void )

Returns the current time measured in the number of seconds since the Unix Epoch (January 1 1970 00:00:00 GMT).

how about amxx function command??
thanks~

hlstriker 06-08-2007 18:24

Re: how to get the time (current Unix timestamp) ?
 
You want the system time in seconds it seems?

Try using get_systime

http://www.amxmodx.org/funcwiki.php?go=func&id=251


All times are GMT -4. The time now is 10:38.

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