DT_SetDateTimeΒΆ
DT_SetDateTime sets the value to the specified date/time value.
-
rvDateTime = DT_SetDateTime(rmDateTime)
Return Value
rvDateTime is a real vector. If the date/time invalid for example
February 29, 1998 15:10:10
the function returns the value -1e6 (1000000).
Parameters
-
rmDateTime
rmDateTime is a matrix with 6 columns.
Value | Meaning |
---|---|
rmDateTime[;1] | Year (100 to 9999) |
rmDateTime[;2] | Month (1 to 12) |
rmDateTime[;3] | Day (1 to 31) |
rmDateTime[;4] | Hour (0 to 23) |
rmDateTime[;5] | Minute (0 to 59) |
rmDateTime[;6] | Second (0 to 59) |
Comment
For more information about the DT_
-functions see DT_GetCurrentTime.
Example
* DT_SetDateTime([1998, 1, 1, 12, 0, 0; 1998, 1,2, 18, 0, 0])
35796.5
35797.75
See also
Overview Date and Time, DT_GetCurrentTime, DT_GetYear, DT_GetMonth, DT_GetHour, DT_GetMinute, DT_GetSecond, DT_GetDayOfWeek, DT_GetDayOfYear
id-620504