Writes time values as hours and minutes in the form hh:mm
| 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 minutes value.
The HHMMw.d format writes SAS datetime values in the form
hh:mm, 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.
SAS rounds hours and minutes that are based on the value
of seconds in a SAS time value.
The
HHMMw.d format is
similar to the TIMEw.d
format except that the HHMMw.d format does not print seconds.
The example table uses the input value of 46796, which
is the SAS time value that corresponds to 12:59:56 PM.
SAS rounds up the time value four seconds based on the value
of seconds in the SAS time value.
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.