Skip to content

Second

返回一个 Variant (Integer),指定一个 0 到 59 之间的整数,表示分钟中的秒。

语法:Second ( time )

time
必需 任何可以表示时间的 Variant、数值表达式、字符串表达式或其任意组合。如果 time 包含 Null,则返回 Null

示例

此示例使用 Second 函数从指定时间中获取分钟中的秒。

vb
Dim MyTime, MySecond
MyTime = #4:35:17 PM#    ' Assign a time.
MySecond = Second(MyTime)    ' MySecond contains 17.

另请参阅

twinBASIC及其LOGO版权为作者"韦恩"所有