![]() Chapter Contents |
![]() Previous |
![]() Next |
| HOUR |
| Category: | Date and Time |
| Syntax | |
| Arguments | |
| Details | |
| Examples | |
| See Also |
Syntax |
| HOUR(<time | datetime>) |
| Details |
The HOUR function returns a numeric value that represents the hour from a SAS time or datetime value. Numeric values can range from 0 through 23. HOUR always returns a positive number.
| Examples |
The following SAS statements produce these results:
| SAS Statements | Results |
|---|---|
now='1:30't; h=hour(now); put h; |
1 |
| See Also |
| Functions:
|
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.