IBM Lotus Symphony


Second 函数 [运行时]

返回一个整数,表示由 TimeSerial 或 TimeValue 函数生成的时间值字符串对应的秒数。

语法:

Second (Number)

返回值:

整数

参数:

Number:数字表达式,包含用于计算秒数的时间值字符串。

此函数是 TimeSerial 函数的逆函数。它返回由 TimeSerialTimeValue 函数生成的时间值字符串中的秒值。例如,表达式:

Print Second(TimeSerial(12,30,41))

返回值 41。

错误代码

5 无效的过程调用

示例:

Sub ExampleSecond

MsgBox "The exact second of the current time is "& Second( Now )

End If


产品反馈 | 其他文档 | 商标