Back to index

php5  5.3.10
Functions | Variables
dow.c File Reference
#include "sdncal.h"

Go to the source code of this file.

Functions

int DayOfWeek (long int sdn)

Variables

char * DayNameShort [7]
char * DayNameLong [7]

Function Documentation

int DayOfWeek ( long int  sdn)

Definition at line 34 of file dow.c.

{
       int dow;

       dow = (sdn + 1) % 7;
       if (dow >= 0) {
              return (dow);
       } else {
              return (dow + 7);
       }
}

Here is the caller graph for this function:


Variable Documentation

char* DayNameLong[7]
Initial value:
{
       "Sunday",
       "Monday",
       "Tuesday",
       "Wednesday",
       "Thursday",
       "Friday",
       "Saturday"
}

Definition at line 58 of file dow.c.

char* DayNameShort[7]
Initial value:
{
       "Sun",
       "Mon",
       "Tue",
       "Wed",
       "Thu",
       "Fri",
       "Sat"
}

Definition at line 47 of file dow.c.