MCPcopy Create free account
hub / github.com/CruiserOne/Astrolog / DayOfWeek

Function DayOfWeek

general.cpp:767–773  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

765// Return the day of the week (Sunday is 0) of the specified given date.
766
767int DayOfWeek(int month, int day, int year)
768{
769 int d;
770
771 d = (MdyToJulian(month, day, year) + 1) % 7;
772 return d < 0 ? d+7 : d;
773}
774
775
776// Given a day, and the month and year it falls in, add a number of days to

Callers 15

FEvalFunctionFunction · 0.85
ChartTransitInfluenceFunction · 0.85
ChartCalendarMonthFunction · 0.85
ChartCalendarYearFunction · 0.85
DrawInfoFunction · 0.85
DrawChartXFunction · 0.85
PrintInDaysFunction · 0.85
ChartTransitSearchFunction · 0.85
ChartTransitGraphFunction · 0.85
ChartHorizonRisingFunction · 0.85
ChartExoplanetFunction · 0.85
DrawCalendarFunction · 0.85

Calls 1

MdyToJulianFunction · 0.85

Tested by

no test coverage detected