com.jniwrapper.win32.system
Class SystemTime
java.lang.Object
com.jniwrapper.Parameter
com.jniwrapper.Structure
com.jniwrapper.win32.system.SystemTime
- All Implemented Interfaces:
- com.jniwrapper.AlignmentAwareParameter, com.jniwrapper.CompositeParameter
public class SystemTime
- extends com.jniwrapper.Structure
This class is the wrapper for the native 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.
Fields inherited from class com.jniwrapper.Structure |
i |
Fields inherited from class com.jniwrapper.Parameter |
LICENSE_TYPE, V |
Methods inherited from class com.jniwrapper.Structure |
a, a, acceptIOPerformer, addMembers, computeLength, equals, getAlignmentRequirement, getDebugInfo, getFirstMemberSize, getLength, getMember, getMembers, getOffsets, init, init, initFrom, pop, push, read, setDataBuffer, write |
Methods inherited from class com.jniwrapper.Parameter |
, a, asReturnValue, b, dataBufferAssigned, getAlignedLength, getDataBuffer, getDataBufferOffset, hashCode, indent, read, read, toByteArray, write |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
SystemTime
public SystemTime()
SystemTime
public SystemTime(SystemTime that)
getYear
public int getYear()
setYear
public void setYear(int value)
getMonth
public int getMonth()
setMonth
public void setMonth(int value)
getDayOfWeek
public int getDayOfWeek()
setDayOfWeek
public void setDayOfWeek(int value)
getDay
public int getDay()
setDay
public void setDay(int value)
getHour
public int getHour()
setHour
public void setHour(int value)
getMinute
public int getMinute()
setMinute
public void setMinute(int value)
getSecond
public int getSecond()
setSecond
public void setSecond(int value)
getMilliseconds
public int getMilliseconds()
setMilliseconds
public void setMilliseconds(int value)
clone
public java.lang.Object clone()
- Overrides:
clone
in class com.jniwrapper.Structure
getCurrent
public static SystemTime getCurrent()
- Returns the instance of the
SystemTime
.
- Returns:
- the instance of the
SystemTime
setSystemTime
public static void setSystemTime(SystemTime value)
- Sets the current system time and date.
- Parameters:
value
- the data to set
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object