MINUTE Function

Returns the minute from a SAS time or datetime value.

Category: Date and Time

Syntax

MINUTE(time | datetime)

Required Arguments

time

is a numeric constant, variable, or expression that specifies a SAS time value.

datetime

is a numeric constant, variable, or expression that specifies a SAS datetime value.

Details

The MINUTE function returns an integer that represents a specific minute of the hour. MINUTE always returns a positive number in the range of 0 through 59.

Example

The following SAS statements produce these results.
SAS Statement
Result
time='3:19:24't;
m=minute(time);
put m;
 
19

See Also