E8601DZw. Format

Writes datetime values for the zero meridian Coordinated Universal Time (UTC) time by using the ISO 8601 datetime and time zone extended notation yyyy-mm-ddThh:mm:ss+00:00.
Categories: Date and Time

ISO 8601

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

Syntax

E8601DZw.

Syntax Description

w
specifies the width of the output field.
Default:26
Range:20–35

Details

UTC values specify a time and a time zone based on the zero meridian in Greenwich, England. The E8601DZ format writes SAS datetime values by using one of the following ISO 8601 extended datetime notations:
  • yyyy-mm-ddThh:mm:ss+00:00
    Note: Use this form when w is large enough to support this time zone notation.
  • yyyy-mm-ddThh:mm:ssZ
    Note: Use this form when w is not large enough to support the +00:00 time zone notation.
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.
+00:00
indicates that the time is for zero meridian (Greenwich, England) time.
An ISO 8601 time or datetime value that specifies a time zone offset is adjusted by the number of hours and minutes that is specified in the offset and processed as the time or datetime for the zero meridian (Greenwich, England). The E8601DZ format always writes the datetime value by using the zero meridian offset value of +00:00. To write a datetime that uses the UTC offset other than +00:00, see E8601LZw. Format.
Restriction: The shorter form +00 is not supported.
Z
indicates that the time is for zero meridian (Greenwich, England) or +00:00 UTC time. Z is used when the width of the format does not support the +00:00 notation.

Example

put edz e8601dz.;
Value of edz
Result
1663332780
2012-09-15T12:53:00+00:00