BrightSign Object Reference Manual (FW 5.1) User Manual
Page 311

303
•
AddMilliseconds(milliseconds As Integer) As Void
•
SubtractMilliseconds(milliseconds As Integer) As Void
•
Normalize() As Boolean: Checks that all the fields supplied are correct. This function fails if the values are out
of bounds.
•
ToIsoString() As String: 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".
•
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 (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.
•
ToSecondsSinceEpoch() As Integer: Returns the number of seconds that have elapsed since midnight on
January 1, 1970, as represented by the roDateTime instance (not the system time).
•
FromSecondsSinceEpoch(seconds As Integer) As Boolean: Populates the roDateTime instance with
the specified number of seconds since midnight on January 1, 1970.
•
GetString() As String
The ifString interface provides the following:
•
GetString() As String
A new object is, at the time of its creation, represented by zero seconds. When used via the ifString interface, ifDateTime
will always use the sortable date format "YYYY-MM-DD hh:mm:ss".