get_ryzom_date_str - ryzom/ryzomcore GitHub Wiki


title: Get Ryzom Date String description: published: true date: 2023-03-12T17:23:46.839Z tags: editor: markdown dateCreated: 2023-03-12T17:13:10.492Z

getRyzomDateStr

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.

Syntax

(ryzomDateStr: s)getRyzomDateStr() // getRyzomDateStr__s

Return Value

  • ryzomDateStr (string): The time and date of the Ryzom universe as a debug string.

Example

($ryzomDateStr)getRyzomDateStr();

This example code gets the current Ryzom date as a string and stores it in the variable $ryzomDateStr.

⚠️ **GitHub.com Fallback** ⚠️