public class GPSCalendar
extends java.util.GregorianCalendar
ALL_STYLES, AM, AM_PM, APRIL, areFieldsSet, AUGUST, DATE, DAY_OF_MONTH, DAY_OF_WEEK, DAY_OF_WEEK_IN_MONTH, DAY_OF_YEAR, DECEMBER, DST_OFFSET, ERA, FEBRUARY, FIELD_COUNT, fields, FRIDAY, HOUR, HOUR_OF_DAY, isSet, isTimeSet, JANUARY, JULY, JUNE, LONG, MARCH, MAY, MILLISECOND, MINUTE, MONDAY, MONTH, NOVEMBER, OCTOBER, PM, SATURDAY, SECOND, SEPTEMBER, SHORT, SUNDAY, THURSDAY, time, TUESDAY, UNDECIMBER, WEDNESDAY, WEEK_OF_MONTH, WEEK_OF_YEAR, YEAR, ZONE_OFFSET
Constructor and Description |
---|
GPSCalendar()
Default empty constructor.
|
GPSCalendar(int year,
int month,
int day,
int min,
int sec)
Construct a GPSCalendar Calendar using conventional time notation (not hours) as referred to GMT.
|
GPSCalendar(int year,
int month,
int day,
int hour,
int min,
int sec)
Construct a GPSCalendar Calendar using conventional time notation (including hours) as referred to GMT.
|
GPSCalendar(long gpsMilliSec)
Construct a Calendar using the GPS time in milliseconds to define the time and setting the time zone to GMT.
|
Modifier and Type | Method and Description |
---|---|
long |
getGPSMilliseconds()
Get the GPS time in milliseconds corresponding to the time set in the current Calendar.
|
long |
getGPSSeconds()
Get the GPS seconds corresponding to the time set in the current Calendar.
|
long |
getSeconds()
Get the GPS seconds corresponding to the time set in the current Calendar.
|
long |
getTimeInMillis()
Get the time corresponding to the date of this Calendar in milliseconds from the reference time for Java
Calendars (not the GPS time in milliseconds).
|
int |
getUTCDay()
Get the day of the month corresponding to the time held in this calendar
|
int |
getUTCDayOfYear()
Get the day of the year corresponding to the time held in this calendar
|
int |
getUTCHour()
Get the hour of the day corresponding to the time held in this calendar
|
int |
getUTCMillisecond()
Get the millisecond corresponding to the time held in this calendar
|
int |
getUTCMinute()
Get the minute corresponding to the time held in this calendar
|
int |
getUTCMonth()
Get the month corresponding to the time held in this calendar
|
int |
getUTCSecond()
Get the second corresponding to the time held in this calendar
|
int |
getUTCYear()
Get the year corresponding to the time held in this calendar
|
void |
setGPSSeconds(long gpsTime)
Set the time of this Calendar by giving the GPS time in seconds.
|
add, clone, computeFields, computeTime, equals, getActualMaximum, getActualMinimum, getGreatestMinimum, getGregorianChange, getLeastMaximum, getMaximum, getMinimum, getTimeZone, getWeeksInWeekYear, getWeekYear, hashCode, isLeapYear, isWeekDateSupported, roll, roll, setGregorianChange, setTimeZone, setWeekDate
after, before, clear, clear, compareTo, complete, get, getAvailableLocales, getDisplayName, getDisplayNames, getFirstDayOfWeek, getInstance, getInstance, getInstance, getInstance, getMinimalDaysInFirstWeek, getTime, internalGet, isLenient, isSet, set, set, set, set, setFirstDayOfWeek, setLenient, setMinimalDaysInFirstWeek, setTime, setTimeInMillis, toString
public GPSCalendar()
public GPSCalendar(long gpsMilliSec)
public GPSCalendar(int year, int month, int day, int min, int sec)
public GPSCalendar(int year, int month, int day, int hour, int min, int sec)
public long getSeconds()
public long getGPSSeconds()
public long getGPSMilliseconds()
public void setGPSSeconds(long gpsTime)
gpsTime
- The GPS time in secondspublic long getTimeInMillis()
getTimeInMillis
in class java.util.Calendar
public int getUTCYear()
public int getUTCMonth()
public int getUTCDay()
public int getUTCDayOfYear()
public int getUTCHour()
public int getUTCMinute()
public int getUTCSecond()
public int getUTCMillisecond()