1.Functional Description
1.1Purpose
Scrubs the standard JDE time value (a six digit MathNumeric) in and out of an eight-character string. There are tree modes:
Mode 0 - Formats a passed in MathNumeric into an eight-character string. This is often used when displaying times retrieved from a database.
Mode 1 - Formats and validates a passed in eight-character string and returns a valid string. This is used to edit user input.
Mode 2 - Formats a passed in eight-character string and returns a valid MathNumeric 6 digit time. This is used to take user input and store it into a
database.
1.2Setup Notes and Prerequisites
When developing a new application, it is useful to have the standard MathNumeric in the database and a corresponding eight-character data item for
display and/or user input.
1.3Special Logic
This function only supports the 24 hour clock.
D9800188B - Format MN to Time
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
mnTime | UPMT | MATH_NUMERIC | NONE | NONE |
Required for input for Mode 0.
| ||||
szTime | TIME | char | NONE | NONE |
Required for output for Mode 0.
| ||||
cFormatMode | EV01 | char | NONE | NONE |
mode = 0 - format from database
|
None |
None |