|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
| Field Summary | |
static java.lang.String[] |
GMT_TIME_ZONES
|
| Method Summary | |
double |
calculateTimeZoneDifference(com.plexobject.iploc.Location src,
com.plexobject.iploc.Location dst)
calculateTimeZoneDifference - determines time difference between two time zones |
double |
calculateTimeZoneDifference(java.lang.String src,
java.lang.String dst)
calculateTimeZoneDifference - determines time difference between two time zones |
java.lang.String |
currentTimeAtTimeZone(com.plexobject.iploc.Location loc,
com.ibm.icu.text.DateFormat df)
currentTimeAtTimeZone - finds current time at destination zone |
java.lang.String |
currentTimeAtTimeZone(java.lang.String zone,
com.ibm.icu.text.DateFormat df)
currentTimeAtTimeZone - finds current time at destination zone |
com.plexobject.iploc.Location[] |
findAirportLocationByCity(java.lang.String city,
java.lang.String cc)
findAirportLocationByCity - finds airport location the given city/country |
com.plexobject.iploc.Location |
findLocationByCity(java.lang.String city,
java.lang.String state,
java.lang.String ccOrCountry)
findLocationByCity - finds location with time-zone, lat/long for the given city/country |
java.lang.String |
findTimeAtTimeZone(com.plexobject.iploc.Location src,
com.plexobject.iploc.Location dst,
java.util.Date date,
com.ibm.icu.text.DateFormat df)
findTimeAtTimeZone - finds time at destination zone given the the time at source zone. |
java.lang.String |
findTimeAtTimeZone(java.lang.String src,
java.lang.String dst,
java.util.Date date,
com.ibm.icu.text.DateFormat df)
findTimeAtTimeZone - finds time at destination zone given the the time at source zone. |
com.plexobject.iploc.Location[] |
getAirports()
getAirports finds all airport locations with their airport codes, time-zones, lat/longs, and other information. |
com.plexobject.iploc.Location[] |
getAirports(java.lang.String countryCode)
getAirports finds all airport locations with their airport codes, time-zones, lat/longs, and other information. |
java.lang.String |
getCanadaStateCode(java.lang.String state)
getCanadaStateCode finds state-code for the given state-name in Canada |
java.lang.String[] |
getCanadaStateCodes()
getCanadaStateCode finds all state-code in Canada |
java.lang.String |
getCanadaStateName(java.lang.String state)
getCanadaStateName finds state-name for the given state-code in Canada |
java.lang.String[] |
getCanadaStateNames()
getCanadaStateNames finds all state-names in Canada |
com.plexobject.iploc.Location[] |
getCities(java.lang.String countryCode)
getCities finds all cities for the given country-code with their time-zones, lat/longs, and other information. |
java.lang.String[] |
getContinents()
getContinents - is used by the application programmer to determine list of continents supported by the PlexGlobe library. |
java.lang.String[] |
getCountries()
getCountries - finds list of all countries supported by the PlexGlobe library. |
java.lang.String |
getCountryCode(java.lang.String name)
getCountryCodes - finds country-code for the given country name |
java.lang.String[] |
getCountryCodes()
getCountryCodes - finds list of all country-codes supported by the PlexGlobe library. |
java.lang.String[] |
getCountryCodesForContinent(java.lang.String continent)
getCountryCodesForContinent - finds list of all country codes in the given continent |
java.lang.String[][] |
getCountryCodesWithCountryNames()
getCountryCodesWithCountryNames - finds list of all country-names along with their country codes supported by the PlexGlobe library. |
java.lang.String |
getCountryName(java.lang.String cc)
getCountryName - finds country-name for the given country code |
double |
getGmtByTimeZone(java.lang.String tz)
getGmtByTimeZone finds GMT for the time-zone with the given id |
com.plexobject.iploc.Location |
getLocalTimeZoneLocation()
getLocalTimeZoneLocation - initializes a virtual location with time-zone set to local time-zone. |
long |
getNtpCorrection(java.lang.String server)
getNtpCorrection - returns correction needed to synchronize local time to the external NTP server |
java.lang.String[] |
getNtpServers()
getNtpServers - returns list of NTP-servers supported by the PlexGlobe library |
java.lang.String |
getPhonePrefixForCountryCode(java.lang.String cc)
getPhonePrefixForCountryCode finds phone prefix for given country-code |
com.ibm.icu.util.TimeZone |
getTimeZone(java.lang.String id)
getTimeZone - instantiates time-zone for the given time-zone-id note that PlexGlobe does not use java.util.TimeZone |
com.plexobject.iploc.Location[] |
getTimeZoneByGmt(float gmt)
getTimeZoneByGmt finds locations, whose time-zone has same GMT as given gmt. |
java.lang.String[] |
getTimeZoneIDs()
getTimeZoneIDs finds time-zone-ids |
java.lang.String[] |
getTimeZoneIDs(java.lang.String cc)
getTimeZoneIDs - finds time-zone-ids for given country code |
java.lang.String |
getUSStateCode(java.lang.String state)
getUSStateCode finds state-code for the given state-name |
java.lang.String[] |
getUSStateCodes()
getUSStateCodes returns list of state-codes in America |
java.lang.String |
getUSStateName(java.lang.String state)
getUSStateName finds state-name for the given state-code |
java.lang.String[] |
getUSStateNames()
getUSStateNames returns list of state-names in America |
double[] |
gregorianToJulian(java.util.Date d)
gregorianToJulian -- converts gregorian date to julian |
java.util.Date |
julianToGregorian(double jd,
double t)
julianToGregorian -- converts julian to gregorian date |
com.ibm.icu.util.GregorianCalendar |
newGregorianCalendar()
|
com.ibm.icu.util.GregorianCalendar |
newGregorianCalendar(java.util.Locale loc)
|
boolean |
supportsTimeZoneID(java.lang.String id)
supportsTimeZoneID checks if given time-zone is supported by the PlexGlobe library. |
com.plexobject.iploc.Location |
toZoneLocation(java.lang.String tz)
toZoneLocation constructs a location that uses time zone based on given zone-id |
| Field Detail |
public static final java.lang.String[] GMT_TIME_ZONES
| Method Detail |
public com.plexobject.iploc.Location getLocalTimeZoneLocation()
throws java.rmi.RemoteException
java.rmi.RemoteException
public java.lang.String[] getContinents()
throws java.rmi.RemoteException
java.rmi.RemoteException
public java.lang.String[] getCountries()
throws java.rmi.RemoteException
java.rmi.RemoteException
public java.lang.String[] getCountryCodesForContinent(java.lang.String continent)
throws java.rmi.RemoteException
continent - -- name of the continent
java.rmi.RemoteExceptiongetContinents()
public java.lang.String[] getCountryCodes()
throws java.rmi.RemoteException
java.rmi.RemoteExceptiongetCountries()
public java.lang.String[][] getCountryCodesWithCountryNames()
throws java.rmi.RemoteException
java.rmi.RemoteExceptiongetCountries()
public java.lang.String getCountryCode(java.lang.String name)
throws java.rmi.RemoteException
name - -- name of country
java.rmi.RemoteExceptiongetCountries()
public java.lang.String getCountryName(java.lang.String cc)
throws java.rmi.RemoteException
cc - -- country code
java.rmi.RemoteExceptiongetCountries()
public java.lang.String getPhonePrefixForCountryCode(java.lang.String cc)
throws java.rmi.RemoteException
cc - -- country code
java.rmi.RemoteException
public com.plexobject.iploc.Location[] getCities(java.lang.String countryCode)
throws java.io.IOException,
java.rmi.RemoteException
countryCode - - country code to search
java.io.IOException
java.rmi.RemoteException
public com.plexobject.iploc.Location findLocationByCity(java.lang.String city,
java.lang.String state,
java.lang.String ccOrCountry)
throws java.io.IOException,
java.rmi.RemoteException
city - -- name of the citystate - -- state codeccOrCountry - -- country code or country-name
java.io.IOException
java.rmi.RemoteException
public com.plexobject.iploc.Location[] getAirports()
throws java.io.IOException,
java.rmi.RemoteException
java.io.IOException
java.rmi.RemoteException
public com.plexobject.iploc.Location[] getAirports(java.lang.String countryCode)
throws java.io.IOException,
java.rmi.RemoteException
java.io.IOException
java.rmi.RemoteException
public com.plexobject.iploc.Location[] findAirportLocationByCity(java.lang.String city,
java.lang.String cc)
throws java.io.IOException,
java.rmi.RemoteException
city - -- name of the citycc - -- country code
java.io.IOException
java.rmi.RemoteException
public java.lang.String[] getUSStateCodes()
throws java.rmi.RemoteException
java.rmi.RemoteException
public java.lang.String[] getUSStateNames()
throws java.rmi.RemoteException
java.rmi.RemoteException
public java.lang.String getUSStateName(java.lang.String state)
throws java.rmi.RemoteException
java.rmi.RemoteException
public java.lang.String getUSStateCode(java.lang.String state)
throws java.rmi.RemoteException
java.rmi.RemoteException
public java.lang.String[] getCanadaStateCodes()
throws java.rmi.RemoteException
java.rmi.RemoteException
public java.lang.String[] getCanadaStateNames()
throws java.rmi.RemoteException
java.rmi.RemoteException
public java.lang.String getCanadaStateName(java.lang.String state)
throws java.rmi.RemoteException
java.rmi.RemoteException
public java.lang.String getCanadaStateCode(java.lang.String state)
throws java.rmi.RemoteException
java.rmi.RemoteException
public com.ibm.icu.util.GregorianCalendar newGregorianCalendar()
throws java.rmi.RemoteException
java.rmi.RemoteException
public com.ibm.icu.util.GregorianCalendar newGregorianCalendar(java.util.Locale loc)
throws java.rmi.RemoteException
loc - -- locale
java.rmi.RemoteException
public java.lang.String[] getTimeZoneIDs()
throws java.rmi.RemoteException
java.rmi.RemoteException
public com.plexobject.iploc.Location toZoneLocation(java.lang.String tz)
throws java.io.IOException,
java.rmi.RemoteException
tz - - time-zone-id
java.io.IOException
java.rmi.RemoteException
public java.lang.String[] getTimeZoneIDs(java.lang.String cc)
throws java.io.IOException,
java.rmi.RemoteException
cc - -- country code
java.io.IOException
java.rmi.RemoteException
public boolean supportsTimeZoneID(java.lang.String id)
throws java.rmi.RemoteException
id - -- time-zone id
java.rmi.RemoteException
public com.plexobject.iploc.Location[] getTimeZoneByGmt(float gmt)
throws java.io.IOException,
java.rmi.RemoteException
gmt - -- GMT offset
java.io.IOException
java.rmi.RemoteException
public double getGmtByTimeZone(java.lang.String tz)
throws java.io.IOException,
java.rmi.RemoteException
tz - time-zone-id
java.io.IOException
java.rmi.RemoteException
public com.ibm.icu.util.TimeZone getTimeZone(java.lang.String id)
throws java.rmi.RemoteException
id - time-zone-id
java.rmi.RemoteException
public java.lang.String currentTimeAtTimeZone(com.plexobject.iploc.Location loc,
com.ibm.icu.text.DateFormat df)
throws java.io.IOException,
java.rmi.RemoteException
loc - -- target locationdf - -- date format -- if null default date format is used
java.io.IOException
java.rmi.RemoteException
public java.lang.String currentTimeAtTimeZone(java.lang.String zone,
com.ibm.icu.text.DateFormat df)
throws java.io.IOException,
java.rmi.RemoteException
zone - -- target time-zonedf - -- date format -- if null default date format is used
java.io.IOException
java.rmi.RemoteException
public java.lang.String findTimeAtTimeZone(com.plexobject.iploc.Location src,
com.plexobject.iploc.Location dst,
java.util.Date date,
com.ibm.icu.text.DateFormat df)
throws java.io.IOException,
java.rmi.RemoteException
src - -- source location if null, local time zone is useddst - -- target locationdate - -- time at the source location If null, current time is used.df - -- date format -- if null default date format is used
java.io.IOException
java.rmi.RemoteException
public java.lang.String findTimeAtTimeZone(java.lang.String src,
java.lang.String dst,
java.util.Date date,
com.ibm.icu.text.DateFormat df)
throws java.io.IOException,
java.rmi.RemoteException
src - -- source time zone if null, local time zone is useddst - -- target time zonedate - -- time at the source time zone. If null, current time is used.df - -- date format -- if null default date format is used
java.io.IOException
java.rmi.RemoteException
public double calculateTimeZoneDifference(com.plexobject.iploc.Location src,
com.plexobject.iploc.Location dst)
throws java.io.IOException,
java.rmi.RemoteException
src - -- source location for time-zonedst - -- target location for time-zone
java.io.IOException
java.rmi.RemoteException
public double calculateTimeZoneDifference(java.lang.String src,
java.lang.String dst)
throws java.io.IOException,
java.rmi.RemoteException
src - -- source location for time-zonedst - -- target location for time-zone
java.io.IOException
java.rmi.RemoteException
public double[] gregorianToJulian(java.util.Date d)
throws java.io.IOException,
java.rmi.RemoteException
java.io.IOException
java.rmi.RemoteException
public java.util.Date julianToGregorian(double jd,
double t)
throws java.io.IOException,
java.rmi.RemoteException
jd - - julian datet - - julian century
java.io.IOException
java.rmi.RemoteException
public java.lang.String[] getNtpServers()
throws java.rmi.RemoteException
java.rmi.RemoteException
public long getNtpCorrection(java.lang.String server)
throws java.io.IOException,
java.rmi.RemoteException
java.io.IOException
java.rmi.RemoteException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||