Member of the time class.
v = datevec(s, pivotyear)
v = datevec(s)
v = datevec(n)
[y, m, d, h, mi, se] = datevec(s, pivotyear)
[y, m, d, h, mi, se] = datevec(s)
[y, m, d, h, mi, se] = datevec(n)
Converts a time from a string or a double-precision, floating-point number to a vector.
| Name | Description |
| s | Specifies a time. s is a string. |
| pivotyear | Provides information about the century if you use the form yy in s. If pivotyear is less than 0, LabVIEW considers s to be a time in the current century. The default is -1. |
| n | Specifies a time. n is a double-precision, floating-point number. |
| Name | Description |
| v | Returns the time. v is a vector. |
| y | Returns the year. |
| m | Returns the month. |
| d | Returns the day. |
| h | Returns the hour. |
| mi | Returns the minute. |
| se | Returns the second. |
s = '05-Apr-06';
v = datevec(s)