feat(skills): add tsl api reference skill

Bundle the TSL API index and markdown references under the skill, route TSL docs to use it, and update the codegen index generator to maintain the bundled data.
This commit is contained in:
csh
2026-07-07 16:36:15 +08:00
parent 4cd6b9410f
commit e1f7ce052c
267 changed files with 185908 additions and 11996 deletions
@@ -0,0 +1,21 @@
# 运行时 / 其他
### `isValidDateDay(a_year)`
判断参数指定的年以及此年的第ADayOfYear天是否是有效日期。返回值类型是布尔型真假值 所谓有效,意味着: 年Ayear介于1和9999之间 ADayOfYear介于1和指定Ayear年的最大天数
| 参数 | 类型 | 说明 |
| -------- | ---- | --------------------------------------------------------------------- |
| `a_year` | int | 整数,年,指定的年份;ADayOfYearASecond:整数,表示在Ayear年份的第几天 |
返回:bool
### `recodeSecond(a_value)`
将参数ASecond指定的秒数(0至59)替换掉参数AValue中的相应的秒数信息,得到的日期时间类型返回
| 参数 | 类型 | 说明 |
| --------- | -------- | ------------------------------------------------- |
| `a_value` | datetime | 日期时间类型;AMinute:整数,秒数,定义域\[059\] |
返回:datetime