Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Insert excerpt
BrightScript Version Navigation Menu
BrightScript Version Navigation Menu
nopaneltrue
This object is used to represent an instant in time. At the time of its creation, a new object represents zero seconds.

...

Returns the current roDateTime value as an ISO-8601 basic formatted string. Hyphens for date and colons for time are omitted, and a comma is used to separate seconds from milliseconds: For example, the ISO-8601 standard "2014-05-29T12:30:00.100" would be formatted as "20140529T123000,100".

This method returns an empty string if the year is less than 1970 or greater than 2100. Since a new, un-configured roDateTime object lies outside this range, it will also return an empty string.

FromIsoString(date-time As String) As Boolean

Sets the value of the roDateTime object using an ISO-8601 basic formatted string. Hyphens for date and colons for time are omitted, and either a period or comma can be used to separate seconds from milliseconds: The ISO-8601 standard "2014-05-29T12:30:00.100" could, for example, be formatted as either "20140529T123000,100" or "20140529T123000.100". This method will return False return false (indicating that it has not affected changes to the roDateTime object) if the string is formatted incorrectly or if the date passed is outside the range of January 1, 1970 and December 31, 2100.

...