CalculateTimeDifference

Calculate Time Difference

Minor Business Rule

Object Name: N1700340

Parent DLL: CCRIN

Location: Client/Server

Language: NER

1.Functional Description

1.1Purpose

This function will convert a time passed in from one time zone to another, accounting for any changes 

in the date resulting from the time conversion.


1.2Setup Notes and Prerequisites

UDC table 17/TZ must be set up with correct offsets in description 2 in order for the time 

conversions to be correctly calculated.


1.3Special Logic
Get time zone from UDC table

Calculate time difference between From time and To time.

If less than 0, minus one date.

If greater than 24 hours,  add one date.




Data Structure

D1700340 - Calculate Time Difference

Parameter NameData ItemData TypeReq/OptI/O/Both
szFromTimeZoneITZcharREQINPUT

International time zone.

mnFromTimeTME0MATH_NUMERICREQINPUT

Everest Parent Data Item

mnToTimeTME0MATH_NUMERICREQOUTPUT

Everest Parent Data Item

szToTimeZoneITZcharREQINPUT

International time zone.

jdDateUPMJJDEDATEOPTNONE

The date that specifies the last update to the file record.

Related Functions

None

Related Tables

None