MCPcopy Create free account
hub / github.com/apache/ant / getPhaseOfMoon

Method getPhaseOfMoon

src/main/org/apache/tools/ant/util/DateUtils.java:210–220  ·  view source on GitHub ↗

Calculate the phase of the moon for a given date. Code heavily influenced by hacklib.c in Nethack The Algorithm: moon period = 29.53058 days ~= 30, year = 365.2422 days days moon phase advances on first day of year compared to preceding year

(Calendar cal)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

whenMethod · 0.95
testPhaseOfMoonMethod · 0.95

Calls 1

getMethod · 0.65

Tested by 2

whenMethod · 0.76
testPhaseOfMoonMethod · 0.76