AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Convert Unix Time steps to date (https://forums.alliedmods.net/showthread.php?t=85073)

waza123 02-05-2009 10:03

Convert Unix Time steps to date
 
How to convert unix time steps to normal date/time ?

like in PHP:

PHP Code:

$unix_time time();
print 
date("d.m.Y - H:i:s"$unix_time);
// Result: 05.02.2009 - 17:07:31 

i need the same for AMXX , please help:

Unix time AMXX Function:
get_systime()

How to convert numbers "1233845858" to normal date/time ?

Thanks.

SchlumPF* 02-05-2009 10:08

Re: Convert Unix Time steps to date
 
http://www.amxmodx.org/funcwiki.php?go=func&id=249

waza123 02-05-2009 10:28

Re: Convert Unix Time steps to date
 
this is not a unix time steps converter.

YamiKaitou 02-05-2009 14:47

Re: Convert Unix Time steps to date
 
PHP Code:

new date[32];
get_time("%d.%m.%Y - %H:%M:%S"date31); 

Why does this not work for you?


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

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