Navigation: thinBasic Modules > DT (Date Handling) > DT_TimeSubSeconds |
|
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
Examples
MSGBOX 0, DT_TimeSubSeconds("01:02:03", %DT_SECONDS_IN_HOUR)
' results "00:02:03"
© 2004-2008 thinBasic. All rights reserved. | Version 1.7.0.0 | Web Site: http://www.thinbasic.com |