DIAdem Help

Property: SecondsFrom1904 for UsiTimeDisp

  • Updated2024-09-12
  • 1 minute(s) read

Property: SecondsFrom1904 for UsiTimeDisp

Specifies in a USITimeDisp type object the seconds since 00:00:00 o'clock on 1/1/1904.

Object.SecondsFrom1904
ObjectUsiTimeDisp
Object with this property
Object.SecondsFrom1904LongInteger with read and write access

The following example generates a date and displays the seconds of this time value since 00:00:00 o'clock on 00:00:0000, the seconds of this time value since 00:00:00 o'clock on 01/01/1904, and the fractions of a second:

Dim oMyTimeObj
Set oMyTimeObj = CreateTime(2013,9,13,10,51,44,123,456,789)
Call MsgBoxDisp("Fractions: " & oMyTimeObj.Fraction & vbCrLf & "Seconds from 0000: " & oMyTimeObj.SecondsFrom0000 & _
                vbCrLf & "Seconds from 1904: " & oMyTimeObj.SecondsFrom1904)