Purpose
Returns a 26-byte external date-time stamp as an 8-byte date-time internal binary stamp.
Syntax
►►────┬─ DATE-TIME-EXTERNAL ──┬────────── (date-time-stamp) ──────────────────►◄ ├─ DATETIMX ────────────┤ └─ DTEX ────────────────┘
Parameter
Specifies the 26-byte date-time-stamp to convert to an 8-byte binary date-time-stamp.
date-time-stamp can be one of the following:
Example
In the following example, the DATETIMX function converts a 26-byte string date-time, with the format CCYY-MM-DD-HH.MM.SS.NNNNNN, to an 8-byte binary value:
Initial value:
DT-FIELD: '2007-08-01-15.37.11.876526'
Statement:
MOVE DATETIMX(DT-FIELD) TO DATE-TIME-BINARY
Returned value:
x0165DB0DBA7D5FEE
|
Copyright © 2014 CA.
All rights reserved.
|
|