Date Calculation
Add or subtract time from a date and format the result.
DataDateCalculation
概述
Date Calculation 是 AutoFlowRPA 中 Data 类别下的无代码自动化步骤。 当工作流执行到此处时,它会在单个步骤中完成其操作。 您可以配置 7 个参数,精确控制其行为方式。 它是可在可视化编辑器中拖入工作流的 340 个命令之一,无需编写脚本。
功能说明
Add or subtract time from a date and format the result.
参数
| 参数 | 类型 | 是否必填 | 默认值 | 说明 |
|---|---|---|---|---|
| Date | string | 必填 | now | 'now' or a date string (ISO, or matching the input format). 示例: now 支持变量 |
| Operation | dropdownAdd · Subtract | 必填 | Add | |
| Amount | number | 必填 | 1 | 示例: 7 支持变量 |
| Unit | dropdownseconds · minutes · hours · days · weeks | 必填 | days | |
| Input format | string | 可选 | strptime format for the input (blank = ISO). 示例: %Y-%m-%d | |
| Output format | string | 可选 | %Y-%m-%d %H:%M:%S | strftime format for the result. |
| Store result in | variable | 必填 | 示例: newDate |
如何使用 Date Calculation
- 1
打开 AutoFlowRPA,将 Date Calculation 命令从 Data 分组拖放到画布上。
- 2
在侧边面板中设置其参数——Date Calculation 有 7 个可配置字段。
- 3
将它连入你的工作流并点击运行。一切都在你的本机上本地执行。
常见问题
Date Calculation 命令有什么作用?
Add or subtract time from a date and format the result.
Date Calculation 命令属于哪个分组?
Date Calculation 属于 Data 分组。AutoFlowRPA 附带 340+ 个现成命令,无需代码即可组合使用。
Date Calculation 命令需要任何参数吗?
需要——Date Calculation 有 7 个可配置字段,均可在可视化节点编辑器中编辑。