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