HMS Function

Returns a SAS time value from hour, minute, and second values.

Category: Date and Time

Syntax

Required Arguments

hour

is numeric.

minute

is numeric.

second

is numeric.

Details

The HMS function returns a positive numeric value that represents a SAS time value.

Example

The following SAS statements produce these results:
SAS Statement
Result
hrid=hms(12,45,10);
put hrid
/ hrid time.;
 
45910
12:45:10