Writes SAS time values as hours, minutes, and seconds in the form hh:mm:ss.ss with AM or PM.
Category: | Date and Time |
Alignment: | Right |
specifies the width of the output field.
Default | 11 |
Range | 2–20 |
specifies the number of digits to the right of the decimal point in the seconds value.
Default | 0 |
Range | 0–19 |
Requirement | must be less than w |
Statements
|
Results
|
---|---|
|
----+----1----+ |
select put(59083,timeampm3.); |
PM |
select put(59083,timeampm5.); |
4 PM |
select put(59083,timeampm7.); |
4:24 PM |
select put(59083,timeampm11.); |
4:24:43 PM |