Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Date Intervals, Formats, and Functions

Examples of Interval Specifications

Table 3.1 shows examples of different kinds of interval specifications.

Table 3.1: Examples of Intervals
Name Kind of Interval
YEARyears starting in January
YEAR.10fiscal years starting in October
YEAR2.7biennial intervals starting in July of even years
YEAR2.19biennial intervals starting in July of odd years
YEAR4.11four-year intervals starting in November of leap years (frequency of U.S. presidential elections)
YEAR4.35four-year intervals starting in November of even years between leap years (frequency of U.S. midterm elections)
WEEKweekly intervals starting on Sundays
WEEK2biweekly intervals starting on first Sundays
WEEK1.1same as WEEK
WEEK.2weekly intervals starting on Mondays
WEEK6.3six-week intervals starting on first Tuesdays
WEEK6.11six-week intervals starting on second Wednesdays
WEEKDAYdaily with Friday-Saturday-Sunday counted as the same day (five-day work week with a Saturday-Sunday weekend)
WEEKDAY17Wsame as WEEKDAY
WEEKDAY67Wdaily with Thursday-Friday-Saturday counted as the same day (five-day work week with a Friday-Saturday weekend)
WEEKDAY1Wdaily with Saturday-Sunday counted as the same day (six-day work week with a Sunday weekend)
WEEKDAY3.2three-weekday intervals (with Friday-Saturday-Sunday counted as one weekday) with the cycle three-weekday periods aligned to Monday 4 Jan 1960
HOUR8.7eight-hour intervals starting at 6 a.m., 2 p.m., and 10 p.m. (might be used for work shifts)

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

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