添加一个 DateTime 变量
DateTime 值是采用日期数据的 XML 标准规定的格式的字符串,类似于 ISO 8601。
注意: Architect 目前不支持对 DateTime 值进行偏移或时区。 您无法指定偏移量或时区,但是 Architect 会在表达式编辑器函数中报告该值,就好像它是 UTC 一样。 如果创建调用 toString(日期时间)的函数,Architect 将返回该值,并在字符串后面附加一个 Z,并将该值视为 UTC。
将 DateTime 变量添加到任务序列
在任务序列中,可以将日期 | 时间变量添加到 “更新数据” 操作中。
- 从工具箱中,展开 数据 类别,然后将 “ 更新数据” 操作拖动到任务中的所需位置。
- 在 “更新数据” 工作空间的 “名称” 字段中,添加一个有意义的名称来描述项目。
- Click next to Update Statements and select DateTime.
- 在 变量名称 字段中,键入标签以标识任务中的变量。
- 要在文字模式下设置值,请在 “要分配的 值 ” 字段中执行以下操作:
- 单击日期字段以显示日历对话框,然后选择适当的日期、月份和年份。
- 单击时间字段并选择适当的时间值,包括上午和下午。
- To set the value using an expression, click the Expression modes button , and do one of the following:
- Select Expression and add the expression inline.
- Select Expression and click to open the large expression editor and build your expression.
- Select DateTime Builder to build a DateTime value with the builder.
- (Optional) To add another DateTime variable, click next to Update Statements.