public static class LunarTime.Moonlight
extends java.lang.Object
Collects all moon presence data for a given calendar date and zone of observer.
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAbsent()
Checks if the moon is always below the horizon.
|
boolean |
isPresent(Moment moment)
Is the moon above the horizon at given moment?
|
boolean |
isPresentAllDay()
Checks if the moon is always above the horizon.
|
int |
length()
Obtains the length of moonlight in seconds.
|
Moment |
moonrise()
Obtains the moment of moonrise if it exists.
|
PlainTimestamp |
moonrise(TZID tzid)
Obtains the timestamp of moonrise in given timezoone if it exists.
|
PlainTimestamp |
moonriseLocal()
Obtains the timestamp of moonrise in the local observer timezoone if it exists.
|
Moment |
moonset()
Obtains the moment of moonset if it exists.
|
PlainTimestamp |
moonset(TZID tzid)
Obtains the timestamp of moonset in given timezoone if it exists.
|
PlainTimestamp |
moonsetLocal()
Obtains the timestamp of moonset in the local observer timezoone if it exists.
|
java.lang.String |
toString()
For debugging purposes.
|
public Moment moonrise()
Obtains the moment of moonrise if it exists.
nullpublic PlainTimestamp moonriseLocal()
Obtains the timestamp of moonrise in the local observer timezoone if it exists.
nullpublic PlainTimestamp moonrise(TZID tzid)
Obtains the timestamp of moonrise in given timezoone if it exists.
tzid - timezone identifier (which maybe deviates from local observer timezone)nullpublic Moment moonset()
Obtains the moment of moonset if it exists.
nullpublic PlainTimestamp moonsetLocal()
Obtains the timestamp of moonset in the local observer timezoone if it exists.
nullpublic PlainTimestamp moonset(TZID tzid)
Obtains the timestamp of moonset in given timezoone if it exists.
tzid - timezone identifier (which maybe deviates from local observer timezone)nullpublic boolean isPresent(Moment moment)
Is the moon above the horizon at given moment?
Keep in mind that the moon can even be invisible (New Moon) if it is above the horizon.
moment - the instant to be queriedpublic boolean isPresentAllDay()
Checks if the moon is always above the horizon.
Keep in mind that the moon can even be invisible (New Moon) if it is above the horizon.
true if the moon is always above the horizon else falsepublic boolean isAbsent()
Checks if the moon is always below the horizon.
Keep in mind that the moon can even be invisible (New Moon) if it is above the horizon.
true if the moon is always below the horizon else falsepublic int length()
Obtains the length of moonlight in seconds.
Note: This method ignores the phase of moon.
TimeUnit.SECONDSpublic java.lang.String toString()
For debugging purposes.
toString in class java.lang.Object