Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Working with Time Series Data

Calendar and Time Functions

Calendar and time functions convert calendar and time variables like YEAR, MONTH, DAY, and HOUR, MINUTE, SECOND into SAS date or datetime values, and vice versa.

The SAS calendar and time functions are DATEJUL, DATEPART, DAY, DHMS, HMS, HOUR, JULDATE, MDY, MINUTE, MONTH, QTR, SECOND, TIMEPART, WEEKDAY, YEAR, and YYQ. Refer to SAS Language Reference for more details about these functions.


Computing Dates from Calendar Variables

Computing Calendar Variables from Dates

Converting between Date, Datetime, and Time Values

Computing Datetime Values

Computing Calendar and Time Variables

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

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