CDateFromUnoTime Function

Converts a UNO com.sun.star.util.Time struct to a Date value.

語法


CDateFromUnoTime(aTime)

傳回值類型

日期

參數:

aTime: Time to convert

錯誤代碼:

5 無效的程序呼叫

示例:


Sub ExampleCDateFromUnoTime
    MsgBox(CDateFromUnoTime(aDatabaseRow.getTime(3)))
    MsgBox(CDateFromUnoTime(aTimeControl.Time))
End Sub

Please support us!