Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

ON THIS PAGE


This object is used to represent an instant in time.

At the time of its creation, a new object represents zero seconds.

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".

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".

 

  • No labels