Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
solarTerm (term, gyear) {
if (gyear && term <= 3) gyear--
const years = gyear || this.yearFromEpochCycle()
const lon = (((term + 20) % 24) * 15) % 360
let st = solstice.longitude(years, earth, lon / p)
st = this.midnight(st)
return st
}
value: function solarTerm(term, gyear) {
if (gyear && term <= 3) gyear--;
var years = gyear || this.yearFromEpochCycle();
var lon = (term + 20) % 24 * 15 % 360;
var st = solstice.longitude(years, earth, lon / p);
st = this.midnight(st);
return st;
}