public interface TimeStamp
extends Serializable
Each timestamp is represented by a couple of int:
Serializable
interface in order to save and
then re-create TimeStamp objects.
In alternative a programmer may save the two ints returned by
getDateTime()
and getProg()
and then re-create the same
TimeStamp object using the JFT.makeTimeStamp()
with
the 2 saved ints as parameters.
Modifier and Type | Method and Description |
---|---|
int |
compareTo(TimeStamp timeStamp)
Compare two TimeStamps.
|
int |
getDateTime()
Returns the number of seconds since January 1, 1970, 00:00:00 GMT.
|
int |
getProg()
Returns the associated incremental counter.
|
int getDateTime()
To obtain a Date
object use:
new Date(getDateTime()*1000L)
int getProg()
The incremental counter is used to make the time stamp univocal when it was generated within the same time unit.
int compareTo(TimeStamp timeStamp)
timeStamp
- the TimeStamp to be compared.Submit a bug or feature to FT\API Programming Support