The following is a list of the Time formats and separators for *Time data type.
|
RPG name |
Description |
Format
|
Valid |
Length |
Example |
|
*ISO |
International Standards Organization |
hh.mm.ss |
. 0 |
8 |
13.05.21 |
|
*HMS |
Hours:Minutes:Seconds |
hh:mm:ss |
: . , & 0 |
8 |
13:05:21 |
|
*USA |
IBM USA Standard. AM and PM can be any mix of upper and lower case. |
hh:mm AM or hh:mm PM |
: 0 |
8 |
1:05 PM |
|
*EUR |
IBM European Standard |
hh.mm.ss |
. 0 |
8 |
13.05.21 |
|
*JIS |
Japanese Industrial Standard Christian Era |
hh:mm:ss |
: 0 |
8 |
13:05:21 |
The ampersand (&) separator is replaced with a blank character. E.g., *HMS& results in the example time formated as 01 05 PM.
The zero (0) separator is replaced with no character. E.g., *EURO results in the example time formated as 130521.
See Also
Date and Time
*HIVAL
*LOVAL
Date Formats
Default Values for
all Time Formats