Time
Version 8 (vl, 04/10/2009 06:50 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 | 6 | vl | The server tick is a 32 bit integer that increase by one every 100 milliseconds. |
10 | 1 | vl | To convert it into Ryzom time, you need to know the conversion table. |
11 | 4 | vl | |
12 | 8 | vl | * *shardid*: shard id like 'ani' 'lea' 'ari' |
13 | 8 | vl | * *f*: Output format 0=tick server 1=homin readable 2=xml format |
14 | 8 | vl | |
15 | 4 | vl | h2. Update Frequency |
16 | 4 | vl | |
17 | 4 | vl | The tick is updated every minute. |
18 | 1 | vl | |
19 | 1 | vl | h2. PHP Example |
20 | 1 | vl | |
21 | 1 | vl | <pre> |
22 | 1 | vl | <? |
23 | 1 | vl | $txt = file_get_contents('http://atys.ryzom.com/servertick/index.php?shardid=ani'); |
24 | 1 | vl | echo "<html><body><p>Server Tick on Aniro is $txt</body></html>"; |
25 | 1 | vl | ?> |
26 | 1 | vl | </pre> |
27 | 1 | vl | |
28 | 1 | vl | will display |
29 | 1 | vl | |
30 | 1 | vl | <pre> |
31 | 1 | vl | Server Tick on Aniro is 1269525929 |
32 | 1 | vl | </pre> |
33 | 1 | vl | |
34 | 2 | vl | h2. Real Examples |
35 | 1 | vl | |
36 | 1 | vl | * English: http://ballisticmystix.net/?p=atys_calendar |
37 | 1 | vl | * French: http://fondation.bourdu.org/time.htm |
38 | 7 | vl | * [[UWA Widget]]: http://eco.netvibes.com/widgets/305491/server-tick |