|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--TimeObj
TimeObj
is used to store time information
for different input formats
Field Summary | |
int |
pDay
|
int |
pHour
|
int |
pMinute
|
int |
pMonth
|
float |
pSeconds
|
int |
pYear
|
Constructor Summary | |
TimeObj()
Create TimeObj for current time |
|
TimeObj(double t)
Create TimeObj object from Nanometrics time t |
|
TimeObj(int s70)
Create TimeObj object base on seconds since 1970/1/1 00:00:00 |
|
TimeObj(int min,
float s)
Create TimeObj object from SED time minute second |
|
TimeObj(int yr,
int mon,
int day,
int hr,
int min,
float sec)
Create TimeObj object base specific date as year,month,day,hour,minute,seconds |
|
TimeObj(long s70)
Create TimeObj object base on long seconds since 1970/1/1 00:00:00 |
|
TimeObj(java.lang.String ns)
Create TimeObj object base on Nanometrics String convention: e.g. |
|
TimeObj(java.lang.String t,
java.lang.String fmt)
Create TimeObj object base on any string 't' formatted according to string 'fmt' e.g. |
|
TimeObj(TimeObj o)
Create TimeObj object from Nanometrics time t |
Method Summary | |
void |
addTo(float t)
add time of 't' to this object |
void |
addTo(TimeObj t)
|
int |
getDay()
returns the day component |
int |
getHour()
returns the hour component |
int |
getJuliam()
returns the minutes component |
int |
getMinute()
returns the minute component |
int |
getMonth()
returns the month component |
double |
getNxtime()
returns the nmx-seconds component |
float |
getSeconds()
returns the seconds component |
int |
getYear()
returns the year component |
static void |
main(java.lang.String[] args)
|
long |
minus(TimeObj t)
returns difference of this ojbect minus the argument object (returns milliseconds) |
boolean |
olderThan(TimeObj t)
if this object is older than argument object then return true |
java.lang.String |
toInternationalString()
|
java.lang.String |
toString()
returns a string representation of the time |
boolean |
youngerThan(TimeObj t)
if this object is younger than argument object then return true |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public int pYear
public int pMonth
public int pDay
public int pHour
public int pMinute
public float pSeconds
Constructor Detail |
public TimeObj()
public TimeObj(TimeObj o)
public TimeObj(double t)
public TimeObj(int min, float s)
public TimeObj(java.lang.String ns)
TimeObj(String)
public TimeObj(int s70)
TimeObj(int)
public TimeObj(long s70)
TimeObj(int)
public TimeObj(int yr, int mon, int day, int hr, int min, float sec)
TimeObj(int,int,int,int,int,float)
public TimeObj(java.lang.String t, java.lang.String fmt)
TimeObj(String,String)
Method Detail |
public int getYear()
public int getMonth()
public int getDay()
public int getHour()
public int getMinute()
public float getSeconds()
public double getNxtime()
public int getJuliam()
public void addTo(float t)
public void addTo(TimeObj t)
public long minus(TimeObj t)
public boolean olderThan(TimeObj t)
public boolean youngerThan(TimeObj t)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toInternationalString()
public static void main(java.lang.String[] args) throws java.lang.Exception
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |