Time
Version 10 (vl, 04/24/2009 03:50 pm) → Version 11/15 (kishan, 04/24/2009 03:59 pm)
h1. Time
This Ryzom API gets the time in the game servers (shards).
h2. Base URL
* http://atys.ryzom.com/api/time.php
h2. URL Parameters
h3. @shardid@
The id of the shard. Can be @ani@, @lea@ or @ari@.
h3. @format@ (optional)
Default @format@ is @raw@.
* @raw@: Returns the tick. The server tick is a 32 bit integer that increases increase by one every 100 milliseconds ("example":http://atys.ryzom.com/api/time.php?shardid=ani&format=raw).
* @txt@: Returns a homine-readable string that is the time that is homine readable ("example":http://atys.ryzom.com/api/time.php?shardid=ani&format=txt).
* @xml@: Returns an xml file that contains all shard time information ("example":http://atys.ryzom.com/api/time.php?shardid=ani&format=xml).
h2. Cache Duration
The data is cached during *1 minute*.
h2. PHP Interface
h3. @ryzom_time_tick($shardid)@
Returns the tick of the shard identified by @$shardid@.
h3. @ryzom_time_txt($rytime)@
@$rytime@ is the array returned by @ryzom_time_array@.
Returns the time in homine-readable homine readable string.
h3. @ryzom_time_xml($rytime)@
@$rytime@ is the array returned by @ryzom_time_array@.
Returns the time in an xml format.
h3. @ryzom_time_array($tick, $shardid)@
Creates and returns an array containing all information about the time.
h2. Real Examples
If you have a website that use this Ryzom API, tell it in the forum and we'll add it.
This Ryzom API gets the time in the game servers (shards).
h2. Base URL
* http://atys.ryzom.com/api/time.php
h2. URL Parameters
h3. @shardid@
The id of the shard. Can be @ani@, @lea@ or @ari@.
h3. @format@ (optional)
Default @format@ is @raw@.
* @raw@: Returns the tick. The server tick is a 32 bit integer that increases increase by one every 100 milliseconds ("example":http://atys.ryzom.com/api/time.php?shardid=ani&format=raw).
* @txt@: Returns a homine-readable string that is the time that is homine readable ("example":http://atys.ryzom.com/api/time.php?shardid=ani&format=txt).
* @xml@: Returns an xml file that contains all shard time information ("example":http://atys.ryzom.com/api/time.php?shardid=ani&format=xml).
h2. Cache Duration
The data is cached during *1 minute*.
h2. PHP Interface
h3. @ryzom_time_tick($shardid)@
Returns the tick of the shard identified by @$shardid@.
h3. @ryzom_time_txt($rytime)@
@$rytime@ is the array returned by @ryzom_time_array@.
Returns the time in homine-readable homine readable string.
h3. @ryzom_time_xml($rytime)@
@$rytime@ is the array returned by @ryzom_time_array@.
Returns the time in an xml format.
h3. @ryzom_time_array($tick, $shardid)@
Creates and returns an array containing all information about the time.
h2. Real Examples
If you have a website that use this Ryzom API, tell it in the forum and we'll add it.