Date sequence(日期序列(Date sequence))¶
Supported in: Batch, Faster
Creates an array with dates in range from start to end.
Expression categories: Datetime
Declared arguments¶
- End date: The date to end at (inclusive).
Expression\ - Start date: The date to start from (inclusive).
Expression\ - Step unit: Unit of the step size.
Enum\ - optional Step size: The size of the steps between numbers. Defaults to 1.
Expression\
Output type: Array\
Examples¶
Example 1: Base case¶
Argument values:
- End date:
last_planned_flight - Start date:
first_planned_flight - Step unit:
DAYS - Step size: null
| first_planned_flight | last_planned_flight | Output |
|---|---|---|
| 2023-01-01 | 2023-01-03 | [ 2023-01-01, 2023-01-02, 2023-01-03 ] |
| 2023-01-31 | 2023-02-02 | [ 2023-01-31, 2023-02-01, 2023-02-02 ] |
| 2023-02-28 | 2023-03-01 | [ 2023-02-28, 2023-03-01 ] |
中文翻译¶
日期序列(Date sequence)¶
支持:批处理(Batch)、快速处理(Faster)
生成从起始日期到结束日期范围内的日期数组。
表达式类别: 日期时间(Datetime)
声明的参数¶
- 结束日期(End date): 序列结束的日期(包含该日期)。
表达式\ - 起始日期(Start date): 序列开始的日期(包含该日期)。
表达式\ - 步长单位(Step unit): 步长的单位。
枚举\ - 可选 步长大小(Step size): 数值之间的步进幅度。默认值为 1。
表达式\
输出类型: Array\
示例¶
示例 1:基础情况¶
参数值:
- 结束日期:
last_planned_flight - 起始日期:
first_planned_flight - 步长单位:
DAYS - 步长大小: null
| first_planned_flight | last_planned_flight | 输出 |
|---|---|---|
| 2023-01-01 | 2023-01-03 | [ 2023-01-01, 2023-01-02, 2023-01-03 ] |
| 2023-01-31 | 2023-02-02 | [ 2023-01-31, 2023-02-01, 2023-02-02 ] |
| 2023-02-28 | 2023-03-01 | [ 2023-02-28, 2023-03-01 ] |