Previous Page | Next Page

Formats

MMSSw.d Format



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

Syntax
Syntax Description
Details
Examples
See Also

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.


Examples

The example table uses the input value of 4530.

SAS Statement Results
 
----+----1
put time mmss.;
75:30


See Also

Formats:

HHMMw.d Format

TIMEw.d Format

Functions:

HMS Function

MINUTE Function

SECOND Function

Informat:

TIMEw. Informat

Previous Page | Next Page | Top of Page