public class LocationDayModeCalculator extends Object
| Constructor and Description |
|---|
LocationDayModeCalculator() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isDayMode(android.location.Location location) |
static Time |
sunriseTime(double julian,
com.telenav.map.engine.LocationDayModeCalculator.LatitudeLongitude ll,
TimeZone timeZone,
boolean dst)
Calculate the UTC of sunrise for the given day at the given latitude and
longitude on Earth
|
public static Time sunriseTime(double julian, com.telenav.map.engine.LocationDayModeCalculator.LatitudeLongitude ll, 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 accountpublic static boolean isDayMode(android.location.Location location)