📝 docs(tsl): clarify syntax constraints and enhance test infrastructure
- Add TSF file naming constraint to syntax/02_core_model.md - Clarify semicolon rules: syntax facts vs style preferences - Separate control flow end semicolon rules (syntax allows both) - Add function body semicolon requirements to syntax/05_functions_and_calls.md - Move style preferences to code_style.md (control flow end semicolons) - Remove cross-references from syntax docs to maintain independence - Enhance Gitea workflow emoji for better CI output readability - Fix CI test path from tests/ to test/ - Organize agent test results under test/agent/result/ directory - Add complete Chinese translation of test cases (test_cases_zh.md) - Clean up .gitignore to use unified test/agent/result/ directory - Remove obsolete agent test artifacts (REPORTS_LOCATION.md, old results) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
# 数据仓库金融函数 - 时间相关函数
|
||||
|
||||
文档类型:函数事实页
|
||||
是否可直接用于生成代码:是;本页函数条目均包含参数表
|
||||
遇到不确定时:回到 [../datawarehouse.md](../datawarehouse.md)、[../../index.md](../../index.md)
|
||||
|
||||
## 时间相关函数
|
||||
|
||||
### `sp_time(arg1)`
|
||||
|
||||
用途:时间相关函数相关函数。
|
||||
|
||||
参数个数:1
|
||||
返回值:日期或时间值
|
||||
|
||||
| 参数位置 | 参数名 | 必填 | 接收类型 | 说明 |
|
||||
| -------- | ------ | ---- | -------- | ---------------------------------------- |
|
||||
| 1 | `arg1` | 是 | 整数 | 按源文档示例顺序传入;示例参数形态为 `1` |
|
||||
|
||||
### `tradeDays(date_value, date_value_2)`
|
||||
|
||||
用途:时间相关函数相关函数。
|
||||
|
||||
参数个数:2
|
||||
返回值:处理后的结果值
|
||||
|
||||
| 参数位置 | 参数名 | 必填 | 接收类型 | 说明 |
|
||||
| -------- | -------------- | ---- | ------------ | ------------------------------------------------ |
|
||||
| 1 | `date_value` | 是 | 日期或时间值 | 按源文档示例顺序传入;示例参数形态为 `20230601T` |
|
||||
| 2 | `date_value_2` | 是 | 日期或时间值 | 按源文档示例顺序传入;示例参数形态为 `20230628T` |
|
||||
|
||||
### `firstDay(stock_id)`
|
||||
|
||||
用途:时间相关函数相关函数。
|
||||
|
||||
参数个数:1
|
||||
返回值:处理后的结果值
|
||||
|
||||
| 参数位置 | 参数名 | 必填 | 接收类型 | 说明 |
|
||||
| -------- | ---------- | ---- | -------- | ------------------------------------------------- |
|
||||
| 1 | `stock_id` | 是 | 字符串 | 按源文档示例顺序传入;示例参数形态为 `'SH600086'` |
|
||||
|
||||
### `lastDay(stock_id)`
|
||||
|
||||
用途:时间相关函数相关函数。
|
||||
|
||||
参数个数:1
|
||||
返回值:处理后的结果值
|
||||
|
||||
| 参数位置 | 参数名 | 必填 | 接收类型 | 说明 |
|
||||
| -------- | ---------- | ---- | -------- | ------------------------------------------------- |
|
||||
| 1 | `stock_id` | 是 | 字符串 | 按源文档示例顺序传入;示例参数形态为 `'SH600001'` |
|
||||
Reference in New Issue
Block a user