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 TIME type variable to an alphanumeric variable.
Syntax
Result = &TIME_TO_ALPHA(Time format;Time)
Parameters
|
Description |
Contents |
Controls |
Result |
Alphanumeric variable. |
Alphanumeric variable (in the specified format) corresponding to the time entered as a parameter. |
|
Time format |
Four-position alphanumeric constant. |
Indicates the time format. Possible values: *HMS, *ISO, *USA, *EUR, *JIS, *SYS |
Mandatory parameter. |
Time |
TIME type variable. |
Time to be converted to an alphanumeric variable. |
Mandatory parameter. |
Important note: The *SYS parameter cannot be used for ADELIA programs. Furthermore, in the case of VADELIA and SADELIA programs, if this function is used in an AS/400 server part, the *SYS value is not taken into account; it is replaced by the *ISO value.
Alphanumeric representation of TIME type fields according to their format:
RPG format name |
Description |
Format (Default separator) |
Length |
Example |
*HMS |
Hours:Minutes:Seconds |
hh:mm:ss |
8 |
14:00:00 |
*ISO |
International Standards Organization |
hh.mm.ss |
8 |
14.00.00 |
*USA |
IBM USA Standard. |
hh:mm AM or hh:mm PM |
8 |
02:00 PM |
*EUR |
IBM European Standard |
hh.mm.ss |
8 |
14.00.00 |
*JIS |
Japanese Industrial Standard - Christian Era |
hh:mm:ss |
8 |
14:00:00 |
*SYS |
Client machine format |
Unknown |
Unknown |
Unknown |
Example
WALPHA = &TIME_TO_ALPHA('*HMS';WTIME)
List of predefined functions by topic
↑ Top of page Copyrights Ι ©Hardis Group 2025 - Any partial or total reproduction of the content, not expressly authorized by Hardis Group, is strictly prohibited.