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 convert a numeric field containing a time in the HHMMSS format into a TIME type variable.

 

Syntax

Result = &NUM_TO_TIME(Numeric field)

 

Parameters

 

Description

Contents

Controls

Result

TIME variable.

Time given as a parameter, converted into a TIME variable.

 

Numeric field

Six-character NUM_E or NUM_P type numeric variable or constant with 0 decimals.

Numeric field containing a time in the HHMMSS format, to be converted into a TIME variable.

Mandatory parameter.

 

Note: If the time in the numeric field does not represent a valid time (HH >= 0 and HH <= 23, MM >= 0 and MM <= 59, SS >= 0 and SS <= 59) the time returned is set to 00:00:00 (*LOVAL).

 

Example

TIME_VAR = &NUM_TO_TIME(153045)

...

TIME_VAR = &NUM_TO_TIME(273245)

In this case, TIME_VAR is equal to: 00:00:00

 

List of predefined functions by topic

 

↑ Top of page

  • Aucune étiquette