B8601CIw.d Informat

Reads an IBM date and time value that includes a century marker, in the form cyymmddhhmmss<fff>.
 Categories: Date and Time ISO 8601 Alignment: left

Syntax

B8601CIw.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 B8601CI informat reads time values that are specified in the IBM time notation cyymmddhhmmss<fff>:
c
is a single digit that represents a century:
 0 indicates the years 1900–1999. 1 indicates the years 2000–2099. 2 indicates the years 2100–2199. n indicates the years 00–99 in a century that is determined by performing a calculation on a year greater than 2199. To determine the century marker, subtract 1900 from the year and divide the result by 100. Discard the remainder. The remaining integer is the century marker. For example, to determine the century marker for the year 2382, perform this calculation: (2382–1900)/100=4.82. Discard .82. The century marker is 4.
yy
is a two-digit year between 00 and 99.
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.
fff
are optional fractional seconds, with a precision of up to three digits, where each digit is between 0 and 9.

Example

`input @1 bci b8601ci.;`
Date and Time
Data Line
Result
`----+----1----+`
January 1, 1900 12:00:00
`0000101120000`
`-1893326400`
October 1, 2011 12:15:30.25
`111100112153025`
`1633090530.3`