Focal Point
DATETIME Stamps returned from AS400

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/1381057331/m/4741077331

March 23, 2004, 03:47 AM
andrew w
DATETIME Stamps returned from AS400
Hello,

We're using ETL 5.1.2 to extract data from an AS400 production system via SQLODBC and loading to FOCUS.

The difficulty I'm having is the interpretation of DATETIME fields. "Create Synonym" interprets the DateTime field as A26, which is not using the HYYMDm functionality. Converting this A26 field to HYYMDm is proving to be a hurdle.

Any ideas??

Cheers

Andrew W
March 30, 2004, 03:47 AM
susannah
Just as smart dates are number of days elapsed since the beginning of the last century,
these datetimes are milliseconds elapsed since the epoch date(the epoch date being the start of 1970); there's an article on focal point called "zulu time" (under the 'focus on developers' section) that will definitely explain toyou how to take that A36 field, and transform it into human time, two ways. First by "hand", doing the calculations yourself, and then using focus functions. The thing that this article points out is that the base date for the epoch is in greenwhich mean time, or 'zulu time'