Previous Topic: DISPDTNext Topic: EXTRACT


DTINT

Purpose

Returns an 8-byte internal binary date-time stamp as a 26-byte displayable date-time stamp.

Syntax

►►──┬─ DATE-TIME-INTERNAL ──┬─────── (binary-date-time-stamp) ────────────────►◄
    ├─ DTINT ───────────────┤
    └─ DTIN ────────────────┘

Parameter

binary-date-time-stamp

Specifies the user-defined variable that contains an 8-byte internal binary date-time stamp.

binary-date-time stamp must be the name of a user-defined variable that contains an 8-byte internal binary date-time stamp.

Example

In the following example, the DTINT function converts an 8-byte internal date-time stamp to a 26-byte displayable date-time stamp. The returned value is in the format CCYY-MM-DD-HH.MM.SS.NNNNNN.

Initial value:
    DATE-TIME-STAMP-BINARY: x0165DB0DBA7D5FEE

Statement:
    MOVE DTINT(DATE-TIME-STAMP-BINARY) TO DT-FIELD

Returned string:
    '2007-08-01-15.37.11.876526'