com.alachisoft.ncache.runtime.util
Class NCDateTime

java.lang.Object
  extended by com.alachisoft.ncache.runtime.util.NCDateTime

public class NCDateTime
extends java.lang.Object


Constructor Summary
NCDateTime(int year, int month, int day, int hours, int minutes, int seconds, int milliseconds)
          Creates .Net compatible Ticks.
NCDateTime(long ticks)
          Provided Ticks to initialize and use getDate to get java.util.Date
 
Method Summary
 java.util.Date getDate()
           
 int getDay()
           
 int getHours()
           
 int getMilliseconds()
           
 int getMinutes()
           
 int getMonth()
           
 int getSeconds()
           
 long getTicks()
           
 int getYear()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NCDateTime

public NCDateTime(int year,
                  int month,
                  int day,
                  int hours,
                  int minutes,
                  int seconds,
                  int milliseconds)
           throws ArgumentException
Creates .Net compatible Ticks. Use Calendar.get(field) for this constructor

Parameters:
year - year
month - month of year (Java is 0 based so add 1)
day - day of Month
hours - Hour of Day(24HRS format)
minutes - minutes of an hour
seconds - Seconds of a minute
milliseconds - milliseconds
Throws:
ArgumentException

NCDateTime

public NCDateTime(long ticks)
Provided Ticks to initialize and use getDate to get java.util.Date

Parameters:
ticks -
Method Detail

getDate

public java.util.Date getDate()

getDay

public int getDay()

getHours

public int getHours()

getMilliseconds

public int getMilliseconds()

getMinutes

public int getMinutes()

getMonth

public int getMonth()

getSeconds

public int getSeconds()

getTicks

public long getTicks()

getYear

public int getYear()