The getRyzomDateStr native AI script function gets the Ryzom date as a string for debugging purposes.
The format of the Ryzom date string returned by the getRyzomDateStr function is as follows:
<time> / <day> <dayOfMonth> <monthName>(<month>) <year>
Where:
<time>
is the time of the day in the format "hour:minute:00".<day>
is the name of the day of the week.<dayOfMonth>
is the day of the month (0-based index).<monthName>
is the name of the month.<month>
is the month of the year (0-based index).<year>
is the year.For example, if the Ryzom time is currently "12:30:00" on the 6th day of the 10th month of the 2598th year, the function may return the following string:
12:30:00 / Dua 5 Pluvia(9) 2598
Here, "Pluvia" is the name of the 10th month in the Ryzom calendar, and it corresponds to the Gregorian month of October.
(ryzomDateStr: s)getRyzomDateStr() // getRyzomDateStr__s
($ryzomDateStr)getRyzomDateStr();
This example code gets the current Ryzom date as a string and stores it in the variable $ryzomDateStr
.