Navigation:  thinBasic Modules > DT (Date Handling) >

DT_SecToTime

Previous pageReturn to chapter overviewNext page

 

Description

 

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

 

Syntax

 

DT_SecToTime(nSeconds AS NUMBER) AS STRING

 

Returns

 

Returns AS STRING

  The time string.

 

Parameters

 

nSeconds AS NUMBER

  The numbers of seconds.

 

Remarks

       

Restrictions

 

 

See also

 

  DT_TimeToSec

 

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