Returns the current datetime including an offset. If a time zone id is specified, the time zone offset will be applied. For more information on data types, refer to this page.
日期
nowWithDelta(<parameters>)
参数 | 描述 |
---|---|
三角洲 | 正整数或负整数值 |
日期部分 | 年、月、日、小时、分钟或秒(字符串) |
时区id | 时区值的字符串表示形式。 For more, see Data types. 时区ID必须是字符串常量。 It cannot be a field reference nor an expression. |
nowWithDelta(<delta>,<date part>
nowWithDelta(<delta>,<date part>,"<timeZone id>")
Returns a dateTime.
nowWithDelta(-2, "hours")
nowWithDelta(-2, "hours", "Europe/Paris")
Returns a dateTime exactly 2 hours ago.