Informats |
Category: | Date and Time |
ISO 8601 | |
Alignment: | left |
Alias: | ND8601DT |
Time Zone Format: | No |
ISO 8601 Element: | 5.4.1 Complete representation |
Syntax | |
Syntax Description | |
Details | |
Examples | |
See Also |
Syntax |
B8601DTw.d |
specifies the width of the input field.
Default: | 19 |
Range: | 19-26 |
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 B8602DT informat reads datetime values that are specified in the ISO 8601 basic datetime notation yyyymmddThhmmssffffff:
is a four-digit year, such as 2008
is a two-digit month (zero padded) between 01 and 12
is a two-digit day of the month (zero padded) between 01 and 31
is a two-digit hour (zero padded), between 00 - 23
is a two-digit minute (zero padded), between 00 - 59
is a two-digit second (zero padded), between 00 - 59
are optional fractional seconds, with a precision of up to six digits, where each digit is between 0 - 9
Examples |
Data Line | Results |
---|---|
----+----1 |
|
20080915T155300 |
1537113180 |
See Also |
Reading Dates and Times Using the ISO 860 Basic and Extended Notations |
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.