Previous Page | Next Page

Functions and CALL Routines

HMS Function



Returns a SAS time value from hour, minute, and second values.
Category: Date and Time

Syntax
Arguments
Examples
See Also

Syntax

HMS(hour,minute,second)


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.


Examples

The following SAS statements produce these results:

SAS Statements Results
hrid=hms(12,45,10);
put hrid
/ hrid time.;
 
45910
12:45:10


See Also

Functions:

DHMS Function

HOUR Function

MINUTE Function

SECOND Function

Previous Page | Next Page | Top of Page