Skip to main content
Omnitracs Knowledge Base

Convert GMT Seconds to Date

Classic iSeries integration requires that timestamps be represented in GMT-Seconds. This takes the form of a positive integer representing the number of seconds since January 1st, 1988 (GMT timezone). The Portal Toolkit requires that the format be a timestamp string: "YYYY-MM-DDTHH:MM:SSZ". The "T" and "Z" are constants and never change.

This API permits conversion from one format to the other.

QTGMT2DT Parameter Interface:

 

Direction

 

 

DataType

 

 

Length

 

 

Precision

 

 

Description

 

Input

Packed Decimal    

13

0

Date in GMT-Seconds format

Output

Character

20

n/a

Date in format "YYYY-MM-DDTHH:MM:SSZ"    

  • Was this article helpful?