-
Notifications
You must be signed in to change notification settings - Fork 94
get_ryzom_date_str
Ryzom Core Wiki edited this page Jul 8, 2024
·
8 revisions
title: Get Ryzom Date String description: published: true date: 2023-03-16T23:07:50.920Z tags: editor: markdown dateCreated: 2023-03-16T22:24:41.444Z
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 (string): The time and date of the Ryzom universe as a debug string.
($ryzomDateStr)getRyzomDateStr();
This example code gets the current Ryzom date as a string and stores it in the variable $ryzomDateStr
.