B8601DZw.d Informat

Reads Coordinated Universal Time (UTC) datetime values that are specified using the ISO 8601 datetime basic notation yyyymmddThhmmss+|–hhmm or yyyymmddThhmmss<ffffff>Z.
Categories: Date and Time

ISO 8601

Alignment: left
Alias: ND8601DZ
Restriction: UTC time zone offset values are not supported.
Supports: ISO 8601 Element 5.4.1, complete representation

Syntax

B8601DZw.d

Syntax Description

w
specifies the width of the input field.
Default:26
Range:20–35
d
specifies the number of digits to the right of the seconds value, which represents a fraction of a second. This argument is optional.
Default:0
Range:0–6

Details

UTC values specify a time and a time zone based on the zero meridian in Greenwich, England. The B8601DZ informat reads datetime values that are specified in one of the following ISO 8601 basic datetime notations:
  • yyyymmddThhmmss+|–hhmm
  • yyyymmddThhmmss<ffffff>Z
yyyy
is a four-digit year.
mm
is a two-digit month (zero padded) between 01 and 12.
dd
is a two-digit day of the month (zero padded) between 01 and 31.
hh
is a two-digit hour (zero padded) between 00 and 24.
mm
is a two-digit minute (zero padded) between 00 and 59.
ss
is a two-digit second (zero padded) between 00 and 59.
ffffff
are optional fractional seconds, with a precision of up to six digits, where each digit is between 0 and 9.
+|–hhmm
is an hour and minute signed offset from zero meridian time. Note that the offset must be +|–hhmm (that is, + or – and four characters).
Use + for time zones east of the zero meridian, and use – for time zones west of the zero meridian. For example, +0200 indicates a two-hour time difference to the east of the zero meridian, and –0600 indicates a six–hour time difference to the west of the zero meridian.
Restriction: The shorter form +|–hh is not supported.
Z
indicates that the time is for zero meridian (Greenwich, England) or +0000 UTC time.

Example

input @1 bdz b8601dz.;
Data Line
Result
----+----1
20120915T155300+0500
1663325580