Documentation

hour

Hour of date or time

Syntax

Hour = hour(Date)

Description

Hour = hour(Date) returns the hour of the day given a serial date number or a date string.

Examples

Hour = hour(730473.5584278936)

or

Hour = hour('19-dec-1999, 13:24:08.17')

returns

Hour =
       13

Related Examples

See Also

| |

Introduced before R2006a

Was this topic helpful?