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 |
yr = 1970 +(1:10) t = settime(yr) tn = nsecond(t) tn
Contents of tn [ 1,] 0 [ 2,] 0 [ 3,] 0 [ 4,] 0 [ 5,] 0 [ 6,] 0 [ 7,] 0 [ 8,] 0 [ 9,] 0 [10,] 0