Writes time values as hours, minutes, and seconds in the form
hh:mm:ss.ss
| Category: |
Date and Time
|
| Alignment: |
right
|
-
w
-
specifies the width of the output field.
-
d
-
optionally specifies the number of digits
to the right of the decimal point in the seconds value.
The TIMEw.d format writes SAS time values in the form
hh:mm:ss.ss, where
-
hh
-
is the number of hours that range from
00 through 23.
-
mm
-
is the number of minutes that range from
00 through 59.
-
ss.ss
-
is the number of seconds that range from
00 through 59 with the fraction of a second following the decimal point.
Make w large enough to
produce the desired results. To obtain a complete time value with three decimal
places, you must allow at least 12 spaces: 8 spaces to the left of the decimal
point, 1 space for the decimal point itself, and 3 spaces for the decimal
fraction of seconds.
The
TIMEw.d
format is similar to the HHMMw.d format except that TIMEw.d prints
seconds.
The example table uses the input value of 59083, which
is the SAS time value that corresponds to 4:24:43 PM.
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.