public class TimeManager
extends java.lang.Object
Constructor and Description |
---|
TimeManager(int minusDays)
Constructor of TimeManager class, where the start time of the game is calculated from today at midnight minus
the given number of days.
|
Modifier and Type | Method and Description |
---|---|
long |
getNanosForDB()
Gives the actual timestamp according to the EA clock.
|
boolean |
isLastDay()
Returns
true |
static void |
main(java.lang.String[] args) |
void |
setTimestamp(float eaClock)
This method takes the index of the Electrical-Age clock and generates the corresponding timestamp.
|
void |
setTimestamp(java.lang.String strEaClock)
This method takes the index of the Electrical-Age clock and generates the corresponding timestamp.
|
public TimeManager(int minusDays)
minusDays
- The number of days to subtract to the current day.public void setTimestamp(java.lang.String strEaClock)
strEaClock
- The EA clock given as a String
public void setTimestamp(float eaClock)
eaClock
- The EA clock given as a float
public long getNanosForDB()
public boolean isLastDay()
true
public static void main(java.lang.String[] args)