|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.me.jstott.sun.Sun
public class Sun
Provides methods to calculate sunrise, sunset and civil, nautical and astronomical twilight times for a given latitude and longitude. Based on functions available at http://www.srrb.noaa.gov/highlights/sunrise/sunrise.html For more information on using this class, look at http://www.jstott.me.uk/jsuntimes/
Constructor Summary | |
---|---|
Sun()
|
Method Summary | |
---|---|
static Time |
eveningAstronomicalTwilightTime(double julian,
LatitudeLongitude ll,
java.util.TimeZone timeZone,
boolean dst)
Calculate the UTC of evening astronomical twilight for the given day at the given latitude and longitude on Earth |
static Time |
eveningCivilTwilightTime(double julian,
LatitudeLongitude ll,
java.util.TimeZone timeZone,
boolean dst)
Calculate the UTC of evening civil twilight for the given day at the given latitude and longitude on Earth |
static Time |
eveningNauticalTwilightTime(double julian,
LatitudeLongitude ll,
java.util.TimeZone timeZone,
boolean dst)
Calculate the UTC of evening nautical twilight for the given day at the given latitude and longitude on Earth |
static Time |
morningAstronomicalTwilightTime(double julian,
LatitudeLongitude ll,
java.util.TimeZone timeZone,
boolean dst)
Calculate the UTC of morning astronomical twilight for the given day at the given latitude and longitude on Earth |
static Time |
morningCivilTwilightTime(double julian,
LatitudeLongitude ll,
java.util.TimeZone timeZone,
boolean dst)
Calculate the UTC of morning civil twilight for the given day at the given latitude and longitude on Earth |
static Time |
morningNauticalTwilightTime(double julian,
LatitudeLongitude ll,
java.util.TimeZone timeZone,
boolean dst)
Calculate the UTC of morning nautical twilight for the given day at the nautical latitude and longitude on Earth |
static Time |
sunriseTime(double julian,
LatitudeLongitude ll,
java.util.TimeZone timeZone,
boolean dst)
Calculate the UTC of sunrise for the given day at the given latitude and longitude on Earth |
static Time |
sunsetTime(double julian,
LatitudeLongitude ll,
java.util.TimeZone timeZone,
boolean dst)
Calculate the UTC of sunset for the given day at the given latitude and longitude on Earth |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Sun()
Method Detail |
---|
public static Time sunriseTime(double julian, LatitudeLongitude ll, java.util.TimeZone timeZone, boolean dst)
julian
- Julian dayll
- latitude and longitude of observer in degreestimeZone
- the timeZone to use (e.g. Sun.GMT or Sun.PST)dst
- true if daylight savings time (summer time) should be taken into
account
public static Time morningCivilTwilightTime(double julian, LatitudeLongitude ll, java.util.TimeZone timeZone, boolean dst)
julian
- Julian dayll
- latitude and longitude of observer in degreestimeZone
- the timeZone to use (e.g. Sun.GMT or Sun.PST)dst
- true if daylight savings time (summer time) should be taken into
account
public static Time morningNauticalTwilightTime(double julian, LatitudeLongitude ll, java.util.TimeZone timeZone, boolean dst)
julian
- Julian dayll
- latitude and longitude of observer in degreestimeZone
- the timeZone to use (e.g. Sun.GMT or Sun.PST)dst
- true if daylight savings time (summer time) should be taken into
account
public static Time morningAstronomicalTwilightTime(double julian, LatitudeLongitude ll, java.util.TimeZone timeZone, boolean dst)
julian
- Julian dayll
- latitude and longitude of observer in degreestimeZone
- the timeZone to use (e.g. Sun.GMT or Sun.PST)dst
- true if daylight savings time (summer time) should be taken into
account
public static Time sunsetTime(double julian, LatitudeLongitude ll, java.util.TimeZone timeZone, boolean dst)
julian
- Julian dayll
- latitude and longitude of observer in degreestimeZone
- the timeZone to use (e.g. Sun.GMT or Sun.PST)dst
- true if daylight savings time (summer time) should be taken into
account
public static Time eveningCivilTwilightTime(double julian, LatitudeLongitude ll, java.util.TimeZone timeZone, boolean dst)
julian
- Julian dayll
- latitude and longitude of observer in degreestimeZone
- the timeZone to usedst
- true if daylight savings time (summer time) should be taken into
account
public static Time eveningNauticalTwilightTime(double julian, LatitudeLongitude ll, java.util.TimeZone timeZone, boolean dst)
julian
- Julian dayll
- latitude and longitude of observer in degreestimeZone
- the timeZone to use (e.g. Sun.GMT or Sun.PST)dst
- true if daylight savings time (summer time) should be taken into
account
public static Time eveningAstronomicalTwilightTime(double julian, LatitudeLongitude ll, java.util.TimeZone timeZone, boolean dst)
julian
- Julian dayll
- latitude and longitude of observer in degreestimeZone
- the timeZone to use (e.g. Sun.GMT or Sun.PST)dst
- true if daylight savings time (summer time) should be taken into
account
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |