public class SystemTime
extends com.jniwrapper.Structure
SYSTEMTIME structure.
Also it provides the getCurrent() function to obtain the current system time,
using the GetSystemTime Win API function and
the setSystemTime(SystemTime) function to se he system time.| Constructor and Description |
|---|
SystemTime() |
SystemTime(SystemTime that) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
static SystemTime |
getCurrent()
Returns the instance of the
SystemTime. |
int |
getDay() |
int |
getDayOfWeek() |
int |
getHour() |
int |
getMilliseconds() |
int |
getMinute() |
int |
getMonth() |
int |
getSecond() |
int |
getYear() |
void |
setDay(int value) |
void |
setDayOfWeek(int value) |
void |
setHour(int value) |
void |
setMilliseconds(int value) |
void |
setMinute(int value) |
void |
setMonth(int value) |
void |
setSecond(int value) |
static void |
setSystemTime(SystemTime value)
Sets the current system time and date.
|
void |
setYear(int value) |
java.lang.String |
toString() |
acceptIOPerformer, addMembers, computeLength, equals, getAlignmentRequirement, getDebugInfo, getFirstMemberSize, getLength, getMember, getMembers, getOffsets, init, init, initFrom, pop, push, read, setDataBuffer, writepublic SystemTime()
public SystemTime(SystemTime that)
public int getYear()
public void setYear(int value)
public int getMonth()
public void setMonth(int value)
public int getDayOfWeek()
public void setDayOfWeek(int value)
public int getDay()
public void setDay(int value)
public int getHour()
public void setHour(int value)
public int getMinute()
public void setMinute(int value)
public int getSecond()
public void setSecond(int value)
public int getMilliseconds()
public void setMilliseconds(int value)
public java.lang.Object clone()
clone in class com.jniwrapper.Structurepublic static SystemTime getCurrent()
SystemTime.SystemTimepublic static void setSystemTime(SystemTime value)
value - the data to setpublic java.lang.String toString()
toString in class java.lang.Object