com.jniwrapper.win32.com.types
Class Date

java.lang.Object
  extended bycom.jniwrapper.Parameter
      extended bycom.jniwrapper.AbstractFloat
          extended bycom.jniwrapper.DoubleFloat
              extended bycom.jniwrapper.win32.com.types.Date
All Implemented Interfaces:
FloatParameter

public class Date
extends DoubleFloat

The class Date type is a representation of DATE type. Zero time is December 30, 1899, midnight. Days are presented by the integer part of the number, hours are represented as an absolute value of the fractional part of the number. For more details about DATE type, see WinAPI documentation. This implementation has methods for conversion from and to java.util.Date type.


Field Summary
 
Fields inherited from class com.jniwrapper.DoubleFloat
DOUBLE_LENGTH
 
Fields inherited from class com.jniwrapper.Parameter
LICENSE_TYPE, V
 
Constructor Summary
Date()
           
Date(java.util.Date date)
          Creates Date from java date.
Date(double d)
          Creates Date from double value.
Date(DoubleFloat t)
          Creates Date from DoubleFloat value.
Date(FloatParameter srcVal)
          Creates Date from FloatParameter value.
 
Method Summary
 java.lang.Object clone()
           
 void fromDate(java.util.Date date)
          Converts date from java.util.Date.
 java.util.Date toDate()
          Converts this Date to java.util.Date type.
 java.lang.String toString()
           
 
Methods inherited from class com.jniwrapper.DoubleFloat
, a, convertToBytes, convertToDouble
 
Methods inherited from class com.jniwrapper.AbstractFloat
getDebugInfo, getLength, getValue, read, setValue, write
 
Methods inherited from class com.jniwrapper.Parameter
a, acceptIOPerformer, asReturnValue, b, dataBufferAssigned, equals, getAlignedLength, getAlignmentRequirement, getDataBuffer, getDataBufferOffset, hashCode, indent, pop, push, read, read, setDataBuffer, toByteArray, write
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Date

public Date()

Date

public Date(FloatParameter srcVal)
Creates Date from FloatParameter value.

Parameters:
srcVal -

Date

public Date(java.util.Date date)
Creates Date from java date.

Parameters:
date -

Date

public Date(double d)
Creates Date from double value.

Parameters:
d -

Date

public Date(DoubleFloat t)
Creates Date from DoubleFloat value.

Parameters:
t -
Method Detail

clone

public java.lang.Object clone()

toDate

public java.util.Date toDate()
Converts this Date to java.util.Date type.

Returns:
converted value

fromDate

public void fromDate(java.util.Date date)
Converts date from java.util.Date.

Parameters:
date - is a date to be assigned.

toString

public java.lang.String toString()