roDateTime
This object is used to represent an instant in time. At the time of its creation, a new object represents zero seconds. The JavaScript equivalent is "Date".
ifDateTime
GetDayOfWeek() As Integer
Â
GetDay() As Integer
Â
GetMonth() As Integer
Â
GetYear() As Integer
Â
GetHour() As Integer
Â
GetMinute() As Integer
Â
GetSecond() As Integer
Â
GetMillisecond() As Integer
Â
SetDay(day As Integer) As Void
Â
SetMonth(month As Integer) As Void
Â
SetYear(year As Integer) As Void
Â
SetHour(hour As Integer) As Void
Â
SetMinute(minute As Integer) As Void
Â
SetSecond(second As Integer) As Void
Â
SetMillisecond(millisecond As Integer) As Void
Â
AddSeconds(seconds As Integer) As Void
Â
SubtractSeconds(seconds As Integer) As Void
Â
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".
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 the acceptable 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
 (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
ifString
GetString() As String
Returns the current date using a sortable date format: "YYYY/MM/DD hh:mm:ss.sss".
Â
Â