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

Function GetOffsetCI

general.cpp:888–900  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

886// for special case time zones and Daylight autodetection.
887
888real GetOffsetCI(CONST CI *pci)
889{
890 real zon = pci->zon, dst = pci->dst, jd;
891
892 if (zon == zonLMT)
893 zon = pci->lon / 15.0;
894 else if (zon == zonLAT) {
895 jd = (real)MdyToJulian(pci->mon, pci->day, pci->yea);
896 zon = pci->lon / 15.0 - SwissLatLmt(jd);
897 }
898 dst = DstReal(dst);
899 return zon - dst;
900}
901
902
903// Adjust chart info to have a new time zone and Daylight value. Change its

Callers 7

FEvalFunctionFunction · 0.85
CastRelationFunction · 0.85
FOutputDataFunction · 0.85
FOutputQuickFileFunction · 0.85
ChartExoplanetFunction · 0.85
AdjustTimeZoneFunction · 0.85
PrintWheelCenterFunction · 0.85

Calls 2

MdyToJulianFunction · 0.85
SwissLatLmtFunction · 0.85

Tested by

no test coverage detected