-
Notifications
You must be signed in to change notification settings - Fork 94
get_server_time
Ryzom Core Wiki edited this page Jul 8, 2024
·
4 revisions
title: Get Server Time description: published: true date: 2023-03-16T23:07:53.799Z tags: editor: markdown dateCreated: 2023-03-16T22:24:45.562Z
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.
(serverTime: s)getServerTime()
None.
- serverTime (string): The server time as a string in seconds since 1970.
($serverTime)getServerTime();
This example code gets the current server time and stores it in the $serverTime
variable.