E8601DTw.d Format

Writes datetime values by using the ISO 8601 extended notation yyyy-mm-ddThh:mm:ss.ffffff.

Categories: Date and Time
ISO 8601
Alignment: Left
Alias: IS8601DTw.d
Restriction: UTC time zone offset values are not supported.
Interaction: When the DECIMALCONV= system option is set to STDIEEE, the output that is written using this format might differ slightly from previous releases. For more information, see DECIMALCONV= System Option in SAS System Options: Reference.
Supports: ISO 8601 Element 5.4.1, complete representation

Syntax

E8601DTw.d

Syntax Description

w

specifies the width of the input field.

Default 19
Range 19–26

d

specifies the number of digits to the right of the decimal point in the seconds value. This argument is optional.

Default 0
Range 0–6

Details

The E8601DT format writes datetime values by using the ISO 8601 extended datetime notation yyyy-mm-ddThh:mm:ss.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 edt e8601dt25.3.;
Value of edt
Result
1663343580.2
2012-09-15T15:53:00.234