Navigation:  thinBasic Modules > DT (Date Handling) >

DT_Hour

Previous pageReturn to chapter overviewNext page

 

Description

 

Returns hours from a given time string.

 

Syntax

 

n = DT_Hour(sTime)

 

Returns

 

Number

 

Parameters

 

Name

Type

Optional

Description

sTime

String

No

The time string, if empty the functions returns the current hours.

 

Remarks

 

Restrictions

 

See also

 

DT_Minute, DT_Second

 

Examples

 

'--- Result: 12

MsgBox 0, DT_Minute("12:13:14")

 

 

 

© 2004-2008 thinBasic. All rights reserved. Version 1.7.0.0 Web Site: http://www.thinbasic.com