Skip to content

Commit 9357c03

Browse files
Update ChatScript-System-Variables-and-Engine-defined-Concepts.md
1 parent 888693a commit 9357c03

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

WIKI/ChatScript-System-Variables-and-Engine-defined-Concepts.md

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -234,22 +234,23 @@ setting them.
234234

235235
| variable | description |
236236
| -------- | ---------------------------------------------- |
237-
| `%date` | one or two digit day of the month |
238-
| `%day` |Sunday, etc|
239-
| `%daynumber` | 0-6 where 0 = Sunday|
240-
| `%fulltime` | seconds representing the current time and date (Unix epoch time) |
241-
| `%timenumbers` | completely consistent full time info in numbers that you can do `_0 = ^burst(%timenumbers)`to get `_0` =seconds (2digit) `_1`=minutes (2digit) `_2`=hours (2digit) `_3`=dayinweek(0-6 Sunday=0) `_4`=dateinmonth (1-31) `_5`=month(0-11 January=0) `_6`=year. <br>You need to get it simultaneously if you want to do accurate things with current time, since retrieving %hour %minute separately allows time to change between calls |
242-
| `%leapyear` | boolean if current year is a leap year |
243-
| `%daylightsavings` | boolean if current within daylight savings|
244-
| `%minute` | 0-59 |
245-
| `%month` |1-12 (January = 1)|
246-
| `%monthname` | January, etc|
247-
| `%second` | 0-59|
248-
| `%volleytime` | number of seconds of computation since volley input started |
249-
| `%time` | hh:mm in military 24-hour time |
250-
| `%week` |1-5 (week of the month) |
251-
| `%year` | e.g., 2011 |
252-
| `%rand` | get a random number from 1 to 100 inclusive|
237+
| `%date` | one or two digit day of the month
238+
| `%day` |Sunday, etc
239+
| `%daynumber` | 0-6 where 0 = Sunday
240+
| `%fulltime` | seconds representing the current time and date (Unix epoch time)
241+
| `%hour` | 0-23
242+
| `%timenumbers` | completely consistent full time info in numbers that you can do `_0 = ^burst(%timenumbers)`to get `_0` =seconds (2digit) `_1`=minutes (2digit) `_2`=hours (2digit) `_3`=dayinweek(0-6 Sunday=0) `_4`=dateinmonth (1-31) `_5`=month(0-11 January=0) `_6`=year. <br>You need to get it simultaneously if you want to do accurate things with current time, since retrieving %hour %minute separately allows time to change between calls
243+
| `%leapyear` | boolean if current year is a leap year
244+
| `%daylightsavings` | boolean if current within daylight savings
245+
| `%minute` | 0-59
246+
| `%month` |1-12 (January = 1)
247+
| `%monthname` | January, etc
248+
| `%second` | 0-59
249+
| `%volleytime` | number of seconds of computation since volley input started
250+
| `%time` | hh:mm in military 24-hour time
251+
| `%week` |1-5 (week of the month)
252+
| `%year` | e.g., 2011
253+
| `%rand` | get a random number from 1 to 100 inclusive
253254

254255
Time and date information are normally local, relative to the system clock of the machine
255256
CS is running on. See $cs_utcoffset for adjusting time based on relationship to utc (e.g

0 commit comments

Comments
 (0)