Products Downloads


French version


 


ADELIA

VADELIA

SADELIA

WADELIA

EADELIA

(I/B)

(I/B)

(B)

(I/B)

(B)


Warning: In the case of ADELIA programs, this function is not compatible with C generator.


Description

This predefined function is used to calculate a time by adding a number of hours, minutes or seconds to a given time.


Syntax

Result = &CALCULATE_TIME(Time;Number of units;Unit)


Parameters


Description

Contents

Controls

Result

TIME type variable.

Time calculated.


Time

TIME type variable.

Start time to which is added the number of hours, minutes and seconds given as a parameter.

Mandatory parameter.

Number of units

Numeric integer variable or constant.

Number of hours, minutes or seconds to be added to the time given as a parameter.

Mandatory parameter.

Unit

One-character alphanumeric variable or constant.

Possible values:

H   Hour

M   Minute

S   Second

Mandatory parameter.


Note: If the unit is not a valid value, the number of units is set to 0.


Example

TIME_VAR2 = &CALCULATE_TIME(TIME_VAR1;ADD_VAR;'M')


List of predefined functions by topic


↑ Top of page

  • Aucune étiquette