Time

Version 5 (vl, 04/09/2009 07:34 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 5 vl
The server tick is a 32 bit integer that increase by one every 100 millisecond.
10 1 vl
To convert it into Ryzom time, you need to know the conversion table.
11 4 vl
12 4 vl
h2. Update Frequency
13 4 vl
14 4 vl
The tick is updated every minute.
15 1 vl
16 1 vl
h2. PHP Example
17 1 vl
18 1 vl
<pre>
19 1 vl
<?
20 1 vl
$txt = file_get_contents('http://atys.ryzom.com/servertick/index.php?shardid=ani');
21 1 vl
echo "<html><body><p>Server Tick on Aniro is $txt</body></html>";
22 1 vl
?>
23 1 vl
</pre>
24 1 vl
25 1 vl
will display
26 1 vl
27 1 vl
<pre>
28 1 vl
Server Tick on Aniro is 1269525929
29 1 vl
</pre>
30 1 vl
31 2 vl
h2. Real Examples
32 1 vl
33 1 vl
* English: http://ballisticmystix.net/?p=atys_calendar
34 1 vl
* French: http://fondation.bourdu.org/time.htm