DT_TimeSubSeconds

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > Obsolete > DT (Date Handling) >

DT_TimeSubSeconds

 

This functionality has been made obsolete by newer, better solved CDateTime available directly in core instead.

 

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"