Results 1 to 2 of 2

Thread: Time format

  1. #1

    Default Time format

    Hello guys,

    I am trying to read a string which represents time from a file and store it for further processing in the LAE graph as a time datatype. The problem is that the string contains also the milliseconds of the time so I am asking you: Is there any way I can transform the internal time format stored in the graph from HH:MM:SS to ?

  2. #2
    Larry Tolleson ltolleson's Avatar
    Join Date
    Nov 2006
    Dallas-Fort Worth


    Hi Cristi,

    It can be done, but the functionality is not as straightforward as you are thinking. You will need to use the datetime type instead of just the time type field and then adjust the datetime with the milliseconds. See Example Below.


    someDate = date()
    someTime = time()
    MS = 123

    someDT = timestamp(someDate, someTime)

    someDTMS = someDT.dateTimeAdjust(MS, "milliseconds")

    emit someDate, someTime, someDT, someDTMS

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts