HMS Function


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

Category: Date and Time

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   2:45:10  

See Also

Functions:

  • 'DHMS Function' on page 496

  • 'HOUR Function' on page 579

  • 'MINUTE Function' on page 647

  • 'SECOND Function' on page 819




SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 704

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net