Chapter Contents |
Previous |
Next |
Date Intervals, Formats, and Functions |
Table 3.4 lists the datetime and time formats available. For each format, an example is shown of a datetime value in the notation produced by the format. The datetime value '17OCT91:14:25:32'D is used as the example.
Table 3.4: SAS Datetime and Time FormatsFormat | Width | Default | |
---|---|---|---|
Example | Description | Range | Width |
DATETIMEw.d | ddMONyy:hh:mm:ss | 7-40 | 16 |
17OCT91:14:25:32 | |||
HHMMw.d | hour and minute: hh:mm | 2-20 | 5 |
14:25 | |||
HOURw.d | hour | 2-20 | 2 |
14 | |||
MMSSw.d | minutes and seconds: mm:ss | 2-20 | 5 |
25:32 | |||
TIMEw.d | time of day: hh:mm:ss | 2-20 | 8 |
14:25:32 | |||
TODw. | time of day: hh:mm:ss | 2-20 | 8 |
14:25:32 |
Chapter Contents |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.