FormatMNtoTime

Time Scrubbing Function

Minor Business Rule

Object Name: B9800188

Parent DLL: CCORE

Location: Client/Server

Language: C

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.


Data Structure

D9800188B - Format MN to Time

Parameter NameData ItemData TypeReq/OptI/O/Both
mnTimeUPMTMATH_NUMERICNONENONE

Required for input for Mode 0. 
Required for output for Mode  2.ab 


^

szTimeTIMEcharNONENONE

Required for output for Mode 0. 
Required for input and output for Mode 1. 

Required for input for Mode  2.ab 


^

cFormatModeEV01charNONENONE

mode = 0 - format from database 
mode = 1 - format from form control 

mode = 2 - deformat back to math numberic 


^

Related Functions

None

Related Tables

None