Chapter Contents

Previous

Next
HMS

HMS



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
specifies a SAS expression that represents an integer from 0 through 23.

minute
specifies a SAS expression that represents an integer from 0 through 59.

second
specifies a SAS expression that represents an integer from 0 through 59.


Examples

The following SAS statements produce these results:

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


See Also

Functions:

DHMS
HOUR
MINUTE
SECOND


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.