com.crystaldecisions.reports.common.value
Class DateValue
java.lang.Object
CrystalValue
com.crystaldecisions.reports.common.value.FormulaValue
com.crystaldecisions.reports.common.value.DateValue
- All Implemented Interfaces:
- java.lang.Comparable
public final class DateValue
- extends FormulaValue
- implements java.lang.Comparable
Methods inherited from class com.crystaldecisions.reports.common.value.FormulaValue |
coerce, coerceToArray, coerceToArray, coerceToBoolean, coerceToBoolean, coerceToCurrency, coerceToCurrency, coerceToDate, coerceToDateTime, coerceToNumber, coerceToNumber, coerceToRange, coerceToRange, coerceToRangeArray, coerceToRangeArray, coerceToString, coerceToString, coerceToTime, coerceToTime, getFormulaValueType, Load, LoadFromArchive, makeZeroValue |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
nullCRDate
public static final int nullCRDate
- See Also:
- Constant Field Values
now
public static DateValue now()
store
public void store(ValueType type,
ExtendedDataOutput out)
throws java.io.IOException
- Throws:
java.io.IOException
storeToArchive
public void storeToArchive(ValueType type,
IOutputArchive ar)
throws ArchiveException
- Throws:
ArchiveException
LoadFromArchive
public static DateValue LoadFromArchive(IInputArchive ar)
throws ArchiveException
- Throws:
ArchiveException
Load
public static DateValue Load(java.io.DataInput in)
throws java.io.IOException
- Throws:
java.io.IOException
GetMaxEncodedSize
public static int GetMaxEncodedSize()
getEncodedSizeForArchive
public int getEncodedSizeForArchive(ValueType type)
getEncodedSize
public int getEncodedSize(ValueType type)
fromCRDate
public static DateValue fromCRDate(int CRDate)
fromYMD
public static DateValue fromYMD(int year,
int month,
int day)
fromCalendar
public static DateValue fromCalendar(java.util.Calendar calendar)
fromOleDate
public static DateValue fromOleDate(double OleDate)
isValidOleDate
public static boolean isValidOleDate(double OleDate)
getOleDate
public double getOleDate()
getCRDate
public static int getCRDate(DateValue date)
getYear
public static int getYear(DateValue date)
getMonth
public static int getMonth(DateValue date)
getDay
public static int getDay(DateValue date)
getCRDate
public int getCRDate()
getYear
public int getYear()
getMonth
public int getMonth()
getDay
public int getDay()
getValueType
public ValueType getValueType()
coerceToDate
public FormulaValue coerceToDate()
- Overrides:
coerceToDate
in class FormulaValue
coerceToDateTime
public FormulaValue coerceToDateTime()
- Overrides:
coerceToDateTime
in class FormulaValue
getStartOfDayDateTimeValue
public DateTimeValue getStartOfDayDateTimeValue()
getEndOfDayDateTimeValue
public DateTimeValue getEndOfDayDateTimeValue()
getDateTimeRangeValue
public RangeValue getDateTimeRangeValue()
hashCode
public int hashCode(boolean caseInsensitive)
equals
public boolean equals(java.lang.Object obj,
boolean caseInsensitive)
compareTo
public int compareTo(java.lang.Object obj,
java.util.Comparator stringComparator)
compareTo
public int compareTo(java.lang.Object obj)
- Specified by:
compareTo
in interface java.lang.Comparable
addNumberToDate
public DateValue addNumberToDate(int n)
toString
public java.lang.String toString()
To1900Format
public static double To1900Format(DateValue date)
From1900Format
public static DateValue From1900Format(int inputDate)
getJavaDate
public java.util.Date getJavaDate()