Skip to content

get_server_time

Ryzom Core Wiki edited this page Mar 13, 2023 · 4 revisions

title: Get Server Time description: published: true date: 2023-03-12T15:31:02.046Z tags: editor: markdown dateCreated: 2023-03-12T15:29:44.344Z

getServerTime

The getServerTime native AI script function returns the server time as a string in seconds since 1970. This value can be useful for saving the server date in a file.

Syntax

(serverTime: s)getServerTime()

Arguments

None.

Return Value

  • serverTime (string): The server time as a string in seconds since 1970.

Example

($serverTime)getServerTime();

This example code gets the current server time and stores it in the $serverTime variable.

Clone this wiki locally