Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Group: Time and Date functions
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

Example:

yr = 1970 + (1:10)
t  = settime(yr)
ts = year(t)
ts
Result:

Contents of ts
[ 1,] "1971"
[ 2,] "1972"
[ 3,] "1973"
[ 4,] "1974"
[ 5,] "1975"
[ 6,] "1976"
[ 7,] "1977"
[ 8,] "1978"
[ 9,] "1979"
[10,] "1980"

Group: Time and Date functions
Topic: Time as string output
See also: month dayofmonth dayofweek hour minute second

Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

(C) MD*TECH Method and Data Technologies, 28.6.1999