Group: | Handling of time |
Topic: | Time as string output |
See also: | month dayofmonth dayofweek hour minute second |
Function: | year | |
Description: | returns the year as a string |
Usage: | ts = year(t) | |
Input: | ||
t | n x 1 time vector | |
Output: | ||
ts | n x 1 string array |
yr = 1970 +(1:10) t = settime(yr) ts = year(t) ts
Contents of ts [ 1,] "1971" [ 2,] "1972" [ 3,] "1973" [ 4,] "1974" [ 5,] "1975" [ 6,] "1976" [ 7,] "1977" [ 8,] "1978" [ 9,] "1979"