public class OS_TimeStamp
extends java.util.Date
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
int |
time_nsec |
int |
time_sec |
static int |
version
Version, history and license
2012-04-05 Hartmut new:
os_getSeconds() : seconds are able to process with a
32-bit integer. |
Constructor and Description |
---|
OS_TimeStamp() |
OS_TimeStamp(boolean now) |
OS_TimeStamp(long milliSecondsAfter1970) |
Modifier and Type | Method and Description |
---|---|
static boolean |
os_delayThread(int millisec) |
static OS_TimeStamp |
os_getDateTime()
Returns an instance with the current system time.
|
static int |
os_getSeconds() |
OS_TimeStamp |
set(OS_TimeStamp src)
Sets this instance to the timestamp given in src.
|
after, before, clone, compareTo, equals, from, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getYear, hashCode, parse, setDate, setHours, setMinutes, setMonth, setSeconds, setTime, setYear, toGMTString, toInstant, toLocaleString, toString, UTC
public static final int version
os_getSeconds()
: seconds are able to process with a
32-bit integer. They are supported in most of operation systems. It is the originally unix concept
for the timestamp. It should be available if measurements of seconds are enough and proper to use.
In Java it is the milliseconds from 1970 divide by 1000, converted to (int).
private static final long serialVersionUID
public int time_sec
public int time_nsec
public OS_TimeStamp()
public OS_TimeStamp(long milliSecondsAfter1970)
public OS_TimeStamp(boolean now)
public static OS_TimeStamp os_getDateTime()
public OS_TimeStamp set(OS_TimeStamp src)
src
- Any source.public static boolean os_delayThread(int millisec)
public static int os_getSeconds()