使用英语阅读

通过


#datetimezone

语法

#datetimezone(year as number, month as number, day as number, hour as number, minute as number, second as number, offsetHours as number, offsetMinutes as number) as datetimezone

关于

从表示年、月、日、小时、分钟、(小数)秒、(小数)偏移小时,以及偏移分钟的数值创建 datetimezone 值。 如果不满足以下条件,则会引发错误:

  • 1 ≤ year ≤ 9999
  • 1 ≤ month ≤ 12
  • 1 ≤ day ≤ 31
  • 0 ≤ hour ≤ 23
  • 0 ≤ minute ≤ 59
  • 0 ≤ second < 60
  • -14 ≤ 偏移小时 + 偏移分钟 / 60 ≤ 14