Day and month data types

These data types provide the day of the week and month of the year labels for different window sizes. The smaller the window, the smaller the label. The data type GMMonthLengths at the end of this section provides lengths for the fully spelled out months of the year. This is not needed for the abbreviated months because they are all three characters long.

      static char *GMCsingledaynames[] =
      {
          "S",
          "M",
          "T",
          "W",
          "T",
          "F",
          "S"
      };
      
      static char *GMCshortdaynames[] =
      {
          "Sun",
          "Mon",
          "Tue",
          "Wed",
          "Thu",
          "Fri",
          "Sat"
      };
      
      static char *GMCdaynames[] =
      {
          "Sunday",
          "Monday",
          "Tuesday",
          "Wednesday",
          "Thursday",
          "Friday",
          "Saturday"
      };
      
      static char *GMCshortmonthnames[] =
      {"",
          "Jan",
          "Feb",
          "Mar",
          "Apr",
          "May",
          "Jun",
          "Jul",
          "Aug",
          "Sep",
          "Oct",
          "Nov",
          "Dec"};
      static char *GMCmonthnames[] =
      {"",
          "January",
          "February",
          "March",
          "April",
          "May",
          "June",
          "July",
          "August",
          "September",
          "October",
          "November",
          "December"};
      
      static int GMCmonthlengths[] = { 31,28,31,30,31,30,31,31,30,31,30,31 };
      static TTextDisplay* GDayTextArray[32];

[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker