Writes ISO 8601 duration, datetime, and interval forms using the
extended notations Pyyyy-mm-ddThh:mm:ss and yyyy-mm-ddThh:mm:ss.
Category: |
Date and Time
|
|
ISO
8601
|
Alignment: |
left
|
Time Zone Format: |
No
|
ISO 8601 Element: |
5.4.4 Complete representation
|
- w
-
specifies the width of the output field.
Default: |
50 |
Range: |
1 - 200 |
Requirement: |
The minimum length for a duration
value or a datetime value is 16. The minimum length for an interval value
is 16. |
- d
-
specifies the number of digits to the right of the lowest
order component. This argument is optional.
The $N8601EA format writes ISO 8601 duration, datetime,
and interval values as character data for the following basic notations:
|
Pyyyy-mm-ddThh:mm:ss |
|
yyyy-mm-ddThh:mm:ss |
|
Pyyyy-mm-ddThh:mm:ss/yyyy-mm-ddThh:mm:ss |
|
yyyy-mm-ddThh:mm:ss/Pyyyy-mm-ddThh:mm:ss |
The
lowest order component can contain fractions, as in these examples:
|
p00023.5
|
|
0002-03-04T05.335
|
put @1 nea $N8601ea.;
Value of nea |
Results |
00024050501127D0
|
P0002-04-05T05:01:12.500
|
2008915155300FFD
|
2008-09-15T15:53:00
|
00023040506075282008915155300FFD
|
P0002-03-04T05:06:07.330/2008-09-15T15:53:00
|
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.