#datetime

语法

#datetime(year as number, month as number, day as number, hour as number, minute as number, second as number) as datetime

关于

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

  • 1 ≤ year ≤ 9999
  • 1 ≤ month ≤ 12
  • 1 ≤ day ≤ 31
  • 0 ≤ hour ≤ 23
  • 0 ≤ minute ≤ 59
  • 0 ≤ second < 60