com.alachisoft.ncache.runtime.util
Class NCDateTime
java.lang.Object
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 |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
- yearmonth
- month of year (Java is 0 based so add 1)day
- day of Monthhours
- Hour of Day(24HRS format)minutes
- minutes of an hourseconds
- Seconds of a minutemilliseconds
- milliseconds
- Throws:
ArgumentException
NCDateTime
public NCDateTime(long ticks)
- Provided Ticks to initialize and use getDate to get java.util.Date
- Parameters:
ticks
-
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()