This function returns the number of seconds elapsed since January 1, 1970 (also known as the unix time). This function is useful for measuring longer time intervals.
- int GetTime()
This example tells the player how many days have elapsed since January 1, 1970, when they type '/days'
- function onClientCommand( cmd, text )
- if ( cmd == "days" )
- Message( "Did you know, that " + floor( GetTime() / 86400 ) + " days have elapsed since January 1, 1970?" );
- return 1;