Skip to main content
Omnitracs Knowledge Base

Convert Date to GMT Seconds

Classic iSeries integration requires that timestamps be represented in GMT-Seconds. This takes the form of 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.

QTDT2GMT Parameter Interface:

 

Direction

 

 

DataType

 

 

Length

 

 

Precision

 

 

Description

 

Input

Character

20

n/a

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

Output

Packed Decimal    

13

0

Date in GMT-Seconds format

  • Was this article helpful?