Writes ISO 8601 duration, datetime, and interval forms using the
basic notations PnYnMnDTnHnMnS and yyyymmddThhmmss.
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 $N8601B format writes ISO 8601 duration, datetime,
and interval values as character data for the following basic notations:
|
PnYnMnDTnHnMnS |
|
yyyymmddThhmmss |
|
PnYnMnDTnHnMnS/yyyymmddThhmmss |
|
yyyymmddThhmmssT/PnYnMnDTnHnMnS |
The
lowest order component can contain fractions, as in these examples:
put nb $n8601b.;
Value of nb |
Results |
0002405050112FFC
|
P2Y4M5DT5H1M12S
|
2008915155300FFD
|
20080915T155300
|
2008915000000FFD2010915000000FFD
|
20080915T000000/20100915T000000
|
0033104030255FFC2008915155300FFD
|
P33Y1M4DT3H2M55S/20080915T155300
|
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.