|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ionetrics.lib.annotatorcomm.Timestamp
com.ionetrics.lib.annotatorcomm.MicrosecondTimestamp
public class MicrosecondTimestamp
MicrosecondTimestamp
is a timestamp accurate to within a microsecond. It is the standard time keeping
Timestamp
within libAnnotatorComm.
Field Summary | |
---|---|
protected int |
dayOfYear
Timestamp day of year |
protected int |
microsecond
Timestamp microsecond |
protected int |
secondOfDay
Timestamp second of day |
protected int |
year
Timestamp year |
Constructor Summary | |
---|---|
MicrosecondTimestamp(int year,
int dayOfYear,
int secondOfDay,
int microsecond)
Construct a MicrosecondTimestamp. |
Method Summary | |
---|---|
int |
getDayOfYear()
Get the day of year. |
int |
getMicrosecond()
Get the microsecond of the second. |
int |
getSecondOfDay()
Get the second of the day. |
int |
getYear()
Get the year. |
static MicrosecondTimestamp |
makeTimestamp(byte[] timestamp,
int offset)
Make a MicrosecondTimestamp from a set of bytes. |
Methods inherited from class com.ionetrics.lib.annotatorcomm.Timestamp |
---|
compareTo, equals, getExtendedFormatTime, getFormattedTime, getHourOfDay, getMinuteOfHour, getSecondOfMinute, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int year
protected int dayOfYear
protected int secondOfDay
protected int microsecond
Constructor Detail |
---|
public MicrosecondTimestamp(int year, int dayOfYear, int secondOfDay, int microsecond)
year
- timestamp yeardayOfYear
- timestamp day of yearsecondOfDay
- timestamp second of daymicrosecond
- timestamp microsecondMethod Detail |
---|
public int getYear()
getYear
in class Timestamp
public int getDayOfYear()
getDayOfYear
in class Timestamp
public int getSecondOfDay()
getSecondOfDay
in class Timestamp
public int getMicrosecond()
getMicrosecond
in class Timestamp
public static MicrosecondTimestamp makeTimestamp(byte[] timestamp, int offset)
MicrosecondTimestamp
from a set of bytes.
typedef struct { uint16_t year; uint16_t dayofyear; uint32_t secondofday; } realtimeclock_t; uint32_t microsecond;
timestamp
- raw timestamp bytesoffset
- offset into raw bytes
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |