Scripting

Search The Documentation:

  1. Home
  2. Docs
  3. Scripting
  4. DateTime
  5. compareTime

compareTime

Platform Compatibility

PC Mac OSX Oculus Quest
X X X

Time in HH:MM:SS format, then it returns -1 if A shorter, 0 if equal, 1 = A longer

Parameters:

  • timeA
    • A string value
  • timeB
    • A string value

returns an Integer (whole number) value

Example:

1
obj.compareTime(timeA, timeB)
Tags
Was this article helpful to you? Yes No

How can we help?