Reads datetime values that are specified in the ISO 8601 extended
notation yyyy-mm-ddThh:mm:ss.ffffff.
Category: |
Date and Time
|
|
ISO
8601
|
Alignment: |
left
|
Alias: |
IS8601DT
|
Time Zone Informat: |
No
|
ISO 8601 Element: |
5.4.1 Complete representation
|
- w
-
specifies the width of the input field.
- d
-
specifies the number of digits to the right of the decimal
point in the seconds value. This argument is optional.
The E8601DT informat reads datetime values that are specified
in the ISO 8601 extended datetime notationyyyy-mm-ddThh:mm:ss.ffffff:
- yyyy
-
is a four-digit year, such as 2008.
- 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.
input @1 edt e8601dt.;
Data Line |
Results |
----+----1----+----2----+----3
|
|
2008-09-15T15:53:00
|
1537113180
|
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.