<p>To do this accurately the algorithms are quite complex and most people will turn to a package to make sure that they aren't doing it wrong.</p>
<p>I found <a href="https://github.com/onekiloparsec/SwiftAA" rel="nofollow noreferrer">SwiftAA</a>, which claims to be an implementation of the Meeus algorithms, and it contains a function for finding the date of nodes.</p>
<p>Alternatively, and for a &quot;rough and ready&quot; answer, you can use the fact that the mean time between ascendant nodes is 27.21222 days.  Just count days from a known node.</p>
<p>Or you can implement a simple look-up table from <a href="http://astropixels.com/ephemeris/moon/moonnodes2001.html" rel="nofollow noreferrer">list of all the nodes of the twentieth centruy</a> Which is accurate, but limited.</p>

CC BY-SA 4.0
2023-08-08T08:59:31.220Z
2023-08-08T08:59:31.220Z
James K
<p>Is there an easy way to calculate the next date and time for Ascension / Descension of the Moon?</p>
<p>I work with swift language but a mock code will be ok for me.</p>

CC BY-SA 4.0
2023-08-08T07:32:39.590Z
Are you looking for a package, or an algorithm?  There is a package https://github.com/onekiloparsec/SwiftAA that provides [passageThroughAscendingNode()](https://onekiloparsec.dev/SwiftAA/Classes/Moon.html#/s:7SwiftAA4MoonC27passageThroughAscendingNodeAA9JulianDayVyF) That will be more accurate than any simple formula.
James K
CC BY-SA 4.0
2023-08-08T08:45:48.840Z
I will look at that it can be THE solution. thank you
Sebastien REMY
<the-moon>
How to compute Date and time to next Ascension / Descension of the Moon
Sebastien REMY
# How to compute Date and time to next Ascension / Descension of the Moon

(Asked by: username_0 on 2023-08-08)

Is there an easy way to calculate the next date and time for Ascension / Descension of the Moon?

I work with swift language but a mock code will be ok for me.

**Tags:** the-moon

> **Comments:**
> **username_1**: Are you looking for a package, or an algorithm?  There is a package https://github.com/onekiloparsec/SwiftAA that provides [passageThroughAscendingNode()](https://onekiloparsec.dev/SwiftAA/Classes/Moon.html#/s:7SwiftAA4MoonC27passageThroughAscendingNodeAA9JulianDayVyF) That will be more accurate than any simple formula.  
> **username_0**: I will look at that it can be THE solution. thank you  

---

## 1 answers

### Answer by username_1 on 2023-08-08. Score: 2

To do this accurately the algorithms are quite complex and most people will turn to a package to make sure that they aren't doing it wrong.

I found [SwiftAA](https://github.com/onekiloparsec/SwiftAA), which claims to be an implementation of the Meeus algorithms, and it contains a function for finding the date of nodes.

Alternatively, and for a "rough and ready" answer, you can use the fact that the mean time between ascendant nodes is 27.21222 days. Just count days from a known node.

Or you can implement a simple look-up table from [list of all the nodes of the twentieth centruy](http://astropixels.com/ephemeris/moon/moonnodes2001.html) Which is accurate, but limited.


---

