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 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

Example:
yr = 1970 +(1:10)
t  = settime(yr)
ts = hour(t)
ts

Result:
Contents of ts

       [ 1,] "00"
       [ 2,] "00"
       [ 3,] "00"
       [ 4,] "00"
       [ 5,] "00"
       [ 6,] "00"
       [ 7,] "00"
       [ 8,] "00"
       [ 9,] "00"



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