| Modifier and Type | Field and Description |
|---|---|
| private static volatile int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static int | Returns: see descriptionReturns current time in seconds adjusted by adding {@link #offset) seconds. |
| public static long | Returns: see descriptionReturns current time in milliseconds adjusted by adding {@link #offset) seconds. |
| public static int | |
| public static void | setOffset(int
Offset (in seconds) offset)Sets time offset in seconds that will be added to |
| public static Date | |
| public static Date | |
| public static long | Returns: Time in millisecondsTime in seconds since the epoch time)Returns time in milliseconds for a time in seconds. |
| offset | back to summary |
|---|---|
| private static volatile int offset | |
| Time | back to summary |
|---|---|
| public Time() | |
| currentTime | back to summary |
|---|---|
| public static int currentTime() Returns current time in seconds adjusted by adding {@link #offset) seconds.
| |
| currentTimeMillis | back to summary |
|---|---|
| public static long currentTimeMillis() Returns current time in milliseconds adjusted by adding {@link #offset) seconds.
| |
| getOffset | back to summary |
|---|---|
public static int getOffset()
| |
| setOffset | back to summary |
|---|---|
| public static void setOffset(int offset) Sets time offset in seconds that will be added to
| |
| toDate | back to summary |
|---|---|
| public static Date toDate(int time) Returns
| |
| toDate | back to summary |
|---|---|
| public static Date toDate(long time) Returns
| |
| toMillis | back to summary |
|---|---|
| public static long toMillis(long time) Returns time in milliseconds for a time in seconds. No adjustment is made to the parameter.
| |