B8601DTw.d Format

Writes datetime values by using the ISO 8601 basic notation yyyymmddThhmmss<ffffff>.
Categories: Date and Time

ISO 8601

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

Syntax

B8601DTw.d

Syntax Description

w
specifies the width of the output field.
Default:19
Range:15–26
d
specifies the number of digits to the right of the seconds value that represents a fraction of a second. This argument is optional.
Default:0
Range:0–6

Details

The B8601DT format writes the datetime value by using the ISO 8601 basic datetime notation yyyymmddThhmmss<ffffff>:
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 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.

Example

put bdt b8601dt.;
Value of bdt
Result
---- +----1
1631721180
20110915T155300