com.jniwrapper.win32.system
Class SystemTime

java.lang.Object
  extended by com.jniwrapper.Parameter
      extended by com.jniwrapper.Structure
          extended by 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.


Field Summary
 
Fields inherited from class com.jniwrapper.Structure
i
 
Fields inherited from class com.jniwrapper.Parameter
LICENSE_TYPE, V
 
Constructor Summary
SystemTime()
           
SystemTime(SystemTime that)
           
 
Method Summary
 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()
           
 
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
 

Constructor Detail

SystemTime

public SystemTime()

SystemTime

public SystemTime(SystemTime that)
Method Detail

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