You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ryzom Core Wiki edited this page Jul 8, 2024
·
4 revisions
title: Get Server Time String
description:
published: true
date: 2023-03-16T23:07:56.935Z
tags:
editor: markdown
dateCreated: 2023-03-16T22:24:49.282Z
getServerTimeStr
The getServerTimeStr native AI script function returns the server time as a debug string. This value can be useful for debugging purposes or to track game statistics and events such as boss kills.
Syntax
(serverTime: s)getServerTimeStr()
Arguments
None.
Return Value
serverTime(string): The server time as a debug string in the format Day Month DD HH:MM:SS Year (e.g. Thu Mar 17 23:54:23 2022).
Example
($serverTime)getServerTimeStr();
This example code gets the current server time as a debug string and stores it in the $serverTime variable.