Products & Services Solutions Academia Support User Community Company

Learn more about Financial Toolbox   

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

  


Free Interactive Computational Finance CD

View demos and recorded presentations led by industry experts.

Now On Demand
Network with industry peers and learn the latest applications of the leading software product for computational finance.

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