![]() Returns the interval of the seasonal cycle, given a date, time, or datetime interval. Returns the number of boundaries of intervals of the given kind that lie between the two date or datetime values. INTCK( ' date-interval', date1, date2 ) INTCK( ' datetime-interval', datetime1, datetime2 ) For correct results, date intervals should be used with date values, and datetime intervals should be used with datetime values. ![]() For example, the seasonal cycle for INTERVAL='DAY' is 'WEEK', so INTCINDEX(’DAY’,’01SEP78’D) returns 35 since September 1, 1978, is the sixth day of the th week of the year. Returns the index of the seasonal cycle given an interval and an appropriate SAS date, datetime, or time value. INTCINDEX( ' date-interval', date ) INTCINDEX( ' datetime-interval', datetime ) Returns the hour from a SAS datetime or time value. For example: EASTER2000 = HOLIDAY(’EASTER’, 2000) HOUR( datetime ) Valid values for holiday are 'BOXING', 'CANADA', 'CANADAOBSERVED', 'CHRISTMAS', 'COLUMBUS', 'EASTER', 'FATHERS', 'HALLOWEEN', 'LABOR', 'MLK', 'MEMORIAL', 'MOTHERS', 'NEWYEAR','THANKSGIVING', 'THANKSGIVINGCANADA', 'USINDEPENDENCE', 'USPRESIDENTS', 'VALENTINES', 'VETERANS', 'VETERANSUSG', 'VETERANSUSPS', and 'VICTORIA'. Returns a SAS date value for the holiday and year specified. Returns a SAS time value for hour, minute, and second values. Returns a SAS datetime value for date, hour, minute, and second values. Returns the day of the month from a SAS date value. ![]() Returns the current date and time of day as a SAS datetime value. Returns the date part of a SAS datetime value as a date value. For example, DATE = DATEJUL(99001) assigns the SAS date value '01JAN99'D to DATE, and DATE = DATEJUL(1999365) assigns the SAS date value '31DEC1999'D to DATE. Returns the SAS date value given the Julian date in yyddd or yyyyddd format. Returns today’s date as a SAS date value. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |