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

Error codes:

5 Invalid procedure call

āωāĻĻāĻžāĻšāϰāĻŖ:

Sub ExampleCDateToUnoTime

    aDatabaseRow.updateTime(3, CDateToUnoTime(Now))

    aTimeControl.Time = CDateToUnoTime(Now)

End Sub