Time

Version 3 (vl, 04/09/2009 07:31 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 3 vl
h2. Update Frequency
8 3 vl
9 3 vl
The tick is updated every minute.
10 3 vl
11 1 vl
h2. Syntax
12 1 vl
13 3 vl
The server tick is a 32 bit integer that increase by one every second.
14 1 vl
To convert it into Ryzom time, you need to know the conversion table.
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