Navigation:  thinBasic Modules > DT (Date Handling) >

DT_TimeAddSeconds

Previous pageReturn to chapter overviewNext page

 

Description

 

The DT_TimeAddSeconds() function adds seconds to a given time string and returns the new calculated time.

 

Syntax

 

 DT_TimeAddSeconds(sTime AS STRING, nSeconds AS NUMBER) AS STRING

 

Returns

 

Returns AS STRING

   Returns a new time string

 

Parameters

 

sTime AS STRING

   The time string, if empty the function will use the current time

nSeconds AS NUMBER

   Specify the number of seconds to add

 

Remarks

 

 

Restrictions

 

 

See also

 

  DT_TimeSubSeconds

 

 

Examples

 

MSGBOX 0, DT_TimeAddSeconds("00:02:03", %DT_SECONDS_IN_HOUR)

' results "01:02:03"