Skip to end of metadata
Go to start of metadata

Implemented By

Supported Methods

Description of Methods

Mark() as Void

Sets the "Mark" point to the current time.  The Mark point is also automatically set to the current time when an roTimespan object is created.

TotalMilliseconds() as Integer

Returns the total number of milliseconds from the "Mark" point to the current time.

TotalSeconds() as Integer

Returns the total number of seconds from the "Mark" point to the current time.

  x = timespan.TotalSeconds()

is equivalent to

  x = Int(timespan.TotalMilliseconds() / 1000)

GetSecondsToISO8601Date(date as String) as Integer

This function parses the ISO8601 date (e.g. 2008-11-29T14:54:02.171) and returns the number of seconds from now (not the "Mark" point) until the specified date/time. The date provided and the current time calculations are all done assuming UTC. The "Z" timezone part of the ISO8601 string is ignored.

 

  • No labels