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

See Also

datevec, minute, second

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS