Navigation:  thinBasic Modules > DT (Date Handling) >

DT_Second

Previous pageReturn to chapter overviewNext page

 

Description

 

Returns seconds from a given time string.

 

Syntax

 

n = DT_Second(sTime)

 

Returns

 

Number

 

Parameters

 

Name

Type

Optional

Description

sTime

String

No

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

 

Remarks

 

Restrictions

 

See also

 

DT_Hour, DT_Minute

 

Examples

 

'--- Result: 14

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