« Previous - Version 9/15 (diff) - Next » - Current version
vl, 04/24/2009 02:48 pm


Time

This Ryzom API get the time in the game servers (shards).

Base URL

URL Parameters

shardid

The id of the shard. Can be ani, lea or ari.

format (optional)

Default format is raw.

  • raw: Returns the tick. The server tick is a 32 bit integer that increase by one every 100 milliseconds (example).
  • txt: Returns a string that is the time that is homine readable (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($shardid)

Returns the tick of the shard identified by $shardid.

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, $shardid)

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.