Previous Page | Next Page

Functions and CALL Routines

MINUTE Function



Returns the minute from a SAS time or datetime value.
Category: Date and Time

Syntax
Arguments
Details
Examples
See Also

Syntax

MINUTE(time | datetime)


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.


Examples

SAS Statements Results
time='3:19:24't;
m=minute(time);
put m;
 

19


See Also

Functions:

HOUR Function

SECOND Function

Previous Page | Next Page | Top of Page