CDateToUnoTime Function

Returns the time part of the date as a UNO com.sun.star.util.Time struct.

語法

CDateToUnoTime(aDate)

傳回值類型

com.sun.star.util.Time

參數:

aDate: Date value to convert

錯誤代碼:

5 無效的程序呼叫

示例:

Sub ExampleCDateToUnoTime

    aDatabaseRow.updateTime(3, CDateToUnoTime(Now))

    aTimeControl.Time = CDateToUnoTime(Now)

End Sub