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

Please support us!