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: Handling of time
Topic: Time as numerical output
See also: nyear nmonth ndayofmonth ndayofweek nhour nminute

Function: nsecond
Description: returns the second as a number (0-59)

Usage: tn = nsecond(t)
Input:
t n x 1 time vector
Output:
tn n x 1 array

Example:
yr = 1970 +(1:10)
t  = settime(yr)
tn = nsecond(t)
tn

Result:
Contents of tn

[ 1,]        0
[ 2,]        0
[ 3,]        0
[ 4,]        0
[ 5,]        0
[ 6,]        0
[ 7,]        0
[ 8,]        0
[ 9,]        0
[10,]        0



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