DateTimeLib.timeOf

DateTimeLib.timeOf 运算符将其 DATETIME 操作数的时间部分转换为字符串。如果未提供操作数,DateTimeLib.timeOf 会读取系统时钟并返回表示当前时间的字符串值。


DateTimeLib.timeOf 的语法图
result
字符串中的 timestamp 操作数的时间部分,格式为 hh:mi:ss。此时间基于 24 小时时钟。
timestamp
DATETIME 值。如果未指定值,则运算符返回表示当前时间的字符串,格式如下:hh:mi:ss
hh
小时,用两位字符串表示。
mi
分钟,用两位字符串表示。
ss
秒,用两位字符串表示。

相关参考
DATE
DATETIMELIB

使用条款 | 反馈
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.