Navigation:  thinBasic Modules > DT (Date Handling) >

DT_TimeToSec

Previous pageReturn to chapter overviewNext page

 

Description

 

The DT_TimeToSec () function converts a given time string to the correspondent number of seconds.

 

Syntax

 

DT_TimeToSec(sTime) AS NUMBER

 

Returns

 

Returns AS NUMBER

  The number of seconds.

 

Parameters

 

sTime  AS STRING

  The time string.

 

Remarks

 

Restrictions

 

 

See also

 

  DT_SecToTime

 

Examples

 

MSGBOX 0, DT_SecToTime(DT_TimeToSec("00:01:01"))  ' results "00:01:01"

 

 

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