MMSSw.d Format

Writes time values as the number of minutes and seconds since midnight.
Category: Date and Time
Alignment: right

Syntax

MMSSw.d

Syntax Description

w
specifies the width of the output field.
Default:5
Range:2–20
Tip:Set w to a minimum of 5 to write a value that represents minutes and seconds.
d
specifies the number of digits to the right of the decimal point in the seconds value. Therefore, the SAS time value includes fractional seconds. This argument is optional.
Range:0–19
Restriction: must be less than w

Details

The MMSS format uses asterisks to format values that are outside the time range 0–24 hours, such as datetime values.

Example

The example uses the input value of 4530.
SAS Statement
Result
 
----+----1
put time mmss.;
75:30

See Also

Functions:
HMS Function in SAS Functions and CALL Routines: Reference
MINUTE Function in SAS Functions and CALL Routines: Reference
SECOND Function in SAS Functions and CALL Routines: Reference
Informats: