<<

Contents

Search

>>

 

TIME_ADD$

 

 

Function

 

 

Syntax:

TIME_ADD$(<Time string>,<Value>[,<Type>])

 

<Time string>

= <STRING-EXPRESSION>

<Value>

= <NUM- EXPRESSION >

<Type>

= <NUM- EXPRESSION >

 

Meaning:

TIME_ADD$ adds hours, minutes or seconds to <Time string> and returns the new time string.

 

Parameter:

Time string

Time string in format HH:MM:SS

Value

Value to be added

Type

<Type> specifies whether <Value> contains hours, minutes or seconds.

<Type> = 1: <Value> contains hours

<Type> = 2: <Value> contains minutes

<Type> = other: <Value> contains seconds

 

If the parameter <Type> is missing, this is equivalent to <Type> = 0.

 

Sample:

NEXT_TIME$ = TIME_ADD$(TIME$,10,2) /* current time + 10 minutes

 

See also:

STRTIME$

TIME_TO_SECONDS

TIME_DIFF