context: sunTimes : function(year, month, day, lat, lon, altit, sUppLimb){  var dayDiff;    // Days since 2000 Jan 0.0 (negative before)  var sRadius;    // Sun's apparent radius  var diuArc;     // Diurnal arc  var sSouthT;    // Time when Sun is at south  var locSidT;    // Local sidereal time  var stCode = 0     // Status code from function - usually 0      /* Compute dayDiff of 12h local mean solar time */        dayDiff = this.dayDiff2000(year,month,day) + 0.5 - lon/360.0;      /* Compute local sideral time of this moment */  locSidT = this.revolution( this.GMST0(dayDiff) + 180.0 + lon );      /* Compute Sun's RA + Decl at this moment */  this.sunRaDec( dayDiff );      /* Compute time when Sun is at south - in hours UT */        sSouthT = 12.0 - this.rev180(locSidT - this.sRA)/15.0;      /* Compute the Sun's apparent radius, degrees */  sRadius = 0.2666 / this.sDIST;      /* Do correction to upper limb, if necessary */  if ( sUppLimb != 0)            // For surise/sunset    altit -= sRadius;      /* Compute the diurnal arc that the Sun traverses */      /* to reach the specified altitude altit:         */  {     var cost;     cost = ( this.sind(altit) - this.sind(lat) * this.sind(this.sDEC) ) /             ( this.cosd(lat) * this.cosd(this.sDEC) );     if ( cost >= 1.0 )     {       stCode = -1;       diuArc = 0.0;       // Sun always below altit     }     else if ( cost <= -1.0 )     {       stCode = 1;       diuArc = 12.0;      // Sun always above altit     }     else {       diuArc = this.acosd(cost)/15.0;   // The diurnal arc, hours      }         }      /* Store rise and set times - in hours UT */  if ( sUppLimb != 0)       // For sunrise/sunset  {    this.sRiseT = sSouthT - diuArc;    if(this.sRiseT < 0)        // Sunrise day before      this.sRiseT += 24;          this.sSetT  = sSouthT + diuArc;    if(this.sSetT > 24)        // Sunset next day      this.sSetT -= 24;    this.srStatus = stCode;  }  else                      // For twilight times  {    this.twStartT = sSouthT - diuArc;    if(this.twStartT < 0)      this.twStartT += 24;          this.twEndT  = sSouthT + diuArc;    if(this.twEndT > 24)      this.twEndT -= 24;    this.twStatus = stCode;  }}, //================== sunTimes() =====================
meta: 2362	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2362/7188d7f7e7aec14361ed23f977b452894bbe83a7/calculations.js/buggy/suncult-src/content/suncult/calculations.js