Time

Version 2 (vl, 04/09/2009 07:02 pm)

1 1 vl
h1. ServerTick
2 1 vl
3 1 vl
h2. Base URL
4 1 vl
5 1 vl
http://atys.ryzom.com/servertick/index.php
6 1 vl
7 1 vl
h2. Syntax
8 1 vl
9 1 vl
The server tick is a 32 bit integer that increase every second.
10 1 vl
To convert it into Ryzom time, you need to know the conversion table.
11 1 vl
12 1 vl
h2. PHP Example
13 1 vl
14 1 vl
<pre>
15 1 vl
<?
16 1 vl
$txt = file_get_contents('http://atys.ryzom.com/servertick/index.php?shardid=ani');
17 1 vl
echo "<html><body><p>Server Tick on Aniro is $txt</body></html>";
18 1 vl
?>
19 1 vl
</pre>
20 1 vl
21 1 vl
will display
22 1 vl
23 1 vl
<pre>
24 1 vl
Server Tick on Aniro is 1269525929
25 1 vl
</pre>
26 1 vl
27 2 vl
h2. Real Examples
28 1 vl
29 1 vl
* English: http://ballisticmystix.net/?p=atys_calendar
30 1 vl
* French: http://fondation.bourdu.org/time.htm