specifies the number
of digits to the right of the decimal point in the minutes value.
The digits to the right of the decimal point specify a fraction of
a minute.
Default
0
Range
0–19
Requirement
must be less than w
Details
The HHMMw.d format
writes SAS datetime values in the form hh:mm,
where
hh
is an integer.
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.
Comparisons
The HHMMw.d format
is similar to the TIMEw.d format
except that the HHMMw.d format
does not print seconds.
The HHMMw.d format
and the TIMEw.d format
write a leading blank for the single-hour digit. The TODw.d format
writes a leading zero for a single-hour digit.
Example
The example table uses
the input value of 46796, which is the SAS time value that corresponds
to 12:59:56 PM.
Statements
Results
----+----1
select put(46796,hhmm.);
13:00
select put(46796,hhmm8.2);
12:59.93
In the first example,
SAS rounds up the time value four seconds based on the value of seconds
in the SAS time value. In the second example, by adding a decimal
specification of 2 to the format shows that fifty-six seconds is 93%
of a minute.