Xbasic

+ Time Addition

Syntax

Result as T = Operand1 as Y + Seconds as N

Arguments

Operand1

A short time value.

Seconds

A number.

Description

Time addition produces a time value by adding an integral or fractional number of Seconds to Operand1.

 Examples

The following example shows how to modify a time variable (type Y) by adding seconds.

dim t1 as Y
t1 = ctot("11:10")
? t1
= 11:10:00 00 am
t1 = t1 + 30
? t1
= 11:10:30 00 am

See Also