DateTime.ToRecord

DateTime.ToRecord(dateTime as datetime) as record

返回包含给定日期时间值 dateTime 的各个部分的记录。

  • dateTime: 要从中计算其各个部分的记录的 datetime 值。

示例:

#datetime(2011, 12, 31, 11, 56, 2) 值转换为包含日期和时间值的记录。

使用情况:

DateTime.ToRecord(#datetime(2011, 12, 31, 11, 56, 2))

输出:
[
      Year = 2011,
      Month = 12,
      Day = 31,
      Hour = 11,
      Minute = 56,
      Second = 2
]

results matching ""

    No results matching ""