Navigation:  thinBasic Modules > DT (Date Handling) >

DT_TimeSubSeconds

Previous pageReturn to chapter overviewNext page

 

Description

 

The DT_TimeSubSeconds() function subtracts 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 subtract

 

Remarks

 

 

Restrictions

 

 

See also

 

  DT_TimeAddSeconds

 

 

Examples

 

MSGBOX 0, DT_TimeSubSeconds("01:02:03", %DT_SECONDS_IN_HOUR)

' results "00:02:03"