CDateToUnoTime Function

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

Cú pháp:

CDateToUnoTime(aDate)

GIá trị trả về:

com.sun.star.util.Time

Tham số :

aDate: Date value to convert

Error codes:

5 Sai gọi thủ tục

Thí dụ :

Sub ExampleCDateToUnoTime

    aDatabaseRow.updateTime(3, CDateToUnoTime(Now))

    aTimeControl.Time = CDateToUnoTime(Now)

End Sub