convert longitude to date #306
-
is it possible to convert from longitude to date? for context, human design uses two astrology charts. the first chart is from our birthtime, the second chart is 88° backward from birthtime sun longitude. I get sun correctly but I need sun date in order to know the rest of the second chart. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Sorry, I don't understand this question. I keep re-reading this but I can't figure out what you mean. |
Beta Was this translation helpful? Give feedback.
-
OK, that explanation helps. I recommend calling SunPosition to find the Sun's longitude at the birth date. It returns type EclipticCoordinates, which contains the Sun's ecliptic longitude in the variable Once you have that, subtract 88 degrees, and pass the result to SearchSunLongitude. The resulting code could look something like this: const birth = Astronomy.MakeTime(new Date('2023-06-12T00:00:00Z'));
const sun = Astronomy.SunPosition(birth);
const target = ((sun.elon - 88) + 360) % 360;
const design = Astronomy.SearchSunLongitude(target, birth.AddDays(-100), 100);
console.log(design.date); // 2023-03-13T16:03:31.528Z |
Beta Was this translation helpful? Give feedback.
-
Thank you @cosinekitty. I have one more question regarding lunar nodes. astrology and human design treat lunar nodes as a planetary position so it's important to know the longitude of lunar nodes through time. am I need to create another discussion or create new issue? |
Beta Was this translation helpful? Give feedback.
OK, that explanation helps. I recommend calling SunPosition to find the Sun's longitude at the birth date. It returns type EclipticCoordinates, which contains the Sun's ecliptic longitude in the variable
elon
.Once you have that, subtract 88 degrees, and pass the result to SearchSunLongitude. The resulting code could look something like this: