B8601DJw.d Informat

Reads a Java date and time value that is in the form yyyymmddhhmmss<ffffff>.
Categories: Date and Time

ISO 8601

Alignment: left

Syntax

B8601DJw.d

Syntax Description

w
specifies the width of the input field.
Default:16
Range:10–26
d
specifies the number of digits to the right of the decimal point in the seconds value.
Default:0
Range:0–6

Details

The B8601DJ informat reads a date and time value that is specified using the Java date and time notation yyyymmddhhmmss<ffffff>:
yyyy
is a four-digit year between 0000 and 9999.
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 23.
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.

Comparisons

The B8601DJ informat reads a date and time value that does not include a T to separate the date from the time.
Java date and time values do not include a T. For example, the date January 1, 2011 at 4:30:25 a.m. is written as 20110101043025.
ISO 8601 date and time values include a T. For example, the date January 1, 2011 at 4:30:25 a.m. is written as 20110101T043025.

Example

input @1 bdj b8601dj.;
Date and Time
Data Line
Result
----+----1----+-----
July 31, 2011 2:33:35 p.m.
20110731142335
1627741415
September 1, 2012 7:30:00.33 a.m.
2012090107300033
1662103800.3