dateTime.toString()->byte[13]
Converts the dateTime object into a formatted string.
dt:dateTime
dt.now()
dt.toString() # => "14:40:07.089"
dateTime.getEpoch()->long
Returns the Epoch Unix timestamp (long) of the dateTime object.
This value corresponds to the number of seconds since January 1, 1970 at 00:00.
epoch = dt.getEpoch()
dateTime.setEpoch(epoch:long)
Sets the dateTime object equal to the defined time (Epoch Unix Timestamp).
dt:dateTime
dt.setEpoch(1582226420)
dateTime.getMillis()->int
Returns the millisecond of the dateTime object.
ms = dt.getMillis()
dateTime.getSecond()->int
Returns the second of the dateTime object.
s = dt.getSecond()
dateTime.getMinute()->int
Returns the minute of the dateTime object.
m = dt.getMinute()
dateTime.getHour()->int
Returns the hour of the dateTime object.
h = dt.getHour()
dateTime.getWeekDay()->int
Returns the day of the week of the dateTime object.
0 = Sunday 1 = Monday 2 = Tuesday 3 = Wednesday 4 = Thursday 5 = Friday 6 = Saturday
wd = dt.getWeekDay()
dateTime.getDay()->int
Returns the day of the dateTime object.
d = dt.getDay()
dateTime.getMonth()->int
Returns the month of the dateTime object.
m = dt.getMonth()
dateTime.getYear()->int
Returns the year of the dateTime object.
y = dt.getYear()
dateTime.now()
Sets the dateTime object equal to the current or set time.
dt:dateTime
dt.now()
dateTime.setDate(d:int, m:int, y:int)
Sets the dateTime object equal to the defined time.
d = day m = month y = year
dt:dateTime
dt.setDate(31,12,1990)
dateTime.setTime(h:int, m:int, s:int)
Sets the dateTime object equal to the defined time.
h = hour m = minute s = second
dt:dateTime
dt.setTime(23,59,55)