DIAdem Help

Method: GetUTC for UsiTimeDisp

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

Method: GetUTC for UsiTimeDisp

Returns the time information saved in the USITimeDisp object in coordinated world time as UTC time (Universal Time Coordinated). UTC time consists of a date and time specification.

The GetUTC method does not execute a plausibility check and assumes that the time information to be converted is in local time. If this is not the case, the results are invalid. Therefore we recommend you know how local time is related to UTC time when you use this method. For example, UTC + 1 hour applies in Germany, which means 1 p. m. UTC is the same as 2 p.m. local time. During the daylight saving time, Germany adds a further hour to the UTC time.

Set oUsiTimeDisp = Object.GetUTC
ObjectUsiTimeDisp
Object with this method
oUsiTimeDispUsiTimeDisp
Returned object

The following example generates the time information 25.04.2014 14:35:00 and then outputs the UTC time:

Dim LocalTime: Set LocalTime = CreateTime(2014,4,25,14,35,10)
Dim UTC: Set UTC = LocalTime.GetUTC()
Call MsgBoxDisp(UTC.Hour & ":" & UTC.Minute & ":" & UTC.Second)

Log in to get a better experience