Formats |
Category: | Date and Time |
Alignment: | right |
Syntax | |
Syntax Description | |
Details | |
Comparisons | |
Examples | |
See Also |
Syntax |
TIMEw.d |
specifies the width of the output field.
specifies the number of digits to the right of the decimal point in the seconds value. This argument is optional.
Default: | 0 |
Range: | 0-19 |
Requirement: | must be less than w |
Details |
The TIMEw.d format writes SAS time values in the form hh:mm:ss.ss, where
Note: If hh is a single digit, TIMEw.d places a leading blank before the digit. For example, the TIMEw.d. format writes 9:00 instead of 09:00.
is the number of seconds, ranging from 00 through 59, with the fraction of a second following the decimal point.
Comparisons |
The TIMEw.d format is similar to the HHMMw.d format except that TIMEw.d includes seconds.
The TIMEw.d format writes a leading blank for a single-hour digit. The TODw.d format writes a leading zero for a single-hour digit.
Examples |
The example table uses the input value of 59083, which is the SAS time value that corresponds to 4:24:43 p.m.
SAS Statement | Results |
---|---|
|
----+----1 |
put begin time.; |
16:24:43 |
See Also |
| |||||||||
| |||||||||
|
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.