« Previous - 
    Version 13/15
    (diff) - 
    Next » - 
    Current version
    
    kervala, 10/09/2012 09:06 am 
    Updated time API for new server
    
Time¶
This Ryzom API gets the time in the game servers (shards).
Base URL¶
URL Parameters¶
format (optional)¶
	Default format is raw.
raw: Returns the tick. The server tick is a 32 bit integer that increases by one every 100 milliseconds (example).txt: Returns a homine-readable string (example).xml: Returns an xml file that contains all shard time information (example).
Cache Duration¶
The data is cached during 1 minute.
PHP Interface¶
ryzom_time_tick()¶
	Returns the tick of Atys shard.
ryzom_time_txt($rytime)¶
	$rytime is the array returned by ryzom_time_array.
Returns the time in homine-readable string.
ryzom_time_xml($rytime)¶
	$rytime is the array returned by ryzom_time_array.
Returns the time in an xml format.
ryzom_time_array($tick)¶
	Creates and returns an array containing all information about the time.
Real Examples¶
If you have a website that use this Ryzom API, tell it in the forum and we'll add it.
- Unversal Widget (for windows, netvibes, igoogle,...) http://eco.netvibes.com/widgets/305491/ryzom-time
 - Atys Time converter (sources available) http://ryzom.kervala.net/time.php