public class JplQuikScatCalendar extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Calendar |
calendar |
protected Date |
epochStartDate
The reference epoch start date.
|
protected String |
epochStartDateTimeString
The ISO date/time string encoding of the reference epoch start date.
|
protected String |
epochStartDateTimeStringDefault
The ISO date/time string encoding of the default reference epoch start date.
|
protected String |
isoDateStringFormat
ISO date string format for parsing and formating ISO date strings.
|
protected String |
isoDateTimeStringFormat
ISO date/time string format for parsing and formating ISO date/time strings.
|
| Constructor and Description |
|---|
JplQuikScatCalendar(String epochStartDateTimeString)
Constructor given an ISO date/time string (e.g., "1999-01-01T00:00:00.000GMT")
to set the reference epoch start date.
|
| Modifier and Type | Method and Description |
|---|---|
Date |
getDateFromIsoDateString(String isoDateString)
Return a java.util.Date given an ISO date string.
|
Date |
getDateFromIsoDateTimeString(String isoDateString)
Return a java.util.Date given an ISO date/time string.
|
Date |
getDateFromSecondsSinceEpoch(double secSinceEpoch)
Given a number of seconds since the epoch, return a java.util.Date.
|
Date |
getEpochStartDate()
Return the start date of the reference epoch.
|
String |
getEpochStartDateString()
Return the start date of the reference epoch as an ISO date string.
|
String |
getEpochStartDateTimeString()
Return the start date of the reference epoch as an ISO date/time string.
|
String |
getIsoDateStringFromDate(Date date)
Return an ISO date string given a java.util.Date.
|
String |
getIsoDateTimeStringFromDate(Date date)
Return an ISO date/time string given a java.util.Date.
|
double |
getSecondsSinceEpochFromDate(Date theDate)
Given a java.util.Date, return the seconds since the epoch.
|
protected Date epochStartDate
protected String epochStartDateTimeString
protected String epochStartDateTimeStringDefault
protected String isoDateTimeStringFormat
protected String isoDateStringFormat
protected Calendar calendar
public JplQuikScatCalendar(String epochStartDateTimeString)
epochStartDateTimeString - - the start date of the reference epoch as a ISO date/time string.IllegalArgumentException - - if given ISO date/time string can not be parsed.NullPointerException - - if given ISO date/time string is null.public Date getEpochStartDate()
public String getEpochStartDateString()
public String getEpochStartDateTimeString()
public Date getDateFromIsoDateTimeString(String isoDateString) throws ParseException
isoDateString - - ISO date/time string to be used to set java.util.Date.ParseExceptionpublic String getIsoDateTimeStringFromDate(Date date)
date - - the date to be formatted into an ISO date/time string.public Date getDateFromIsoDateString(String isoDateString) throws ParseException
isoDateString - - ISO date string to be used to set java.util.Date.ParseExceptionpublic String getIsoDateStringFromDate(Date date)
date - - the date to be formatted into an ISO date string.public Date getDateFromSecondsSinceEpoch(double secSinceEpoch)
secSinceEpoch - - the number of seconds since the epoch.public double getSecondsSinceEpochFromDate(Date theDate)
theDate - - the date to represent as seconds since the epoch.Copyright © 1999-2012 UCAR/Unidata. All Rights Reserved.