|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectCrystalValue
com.crystaldecisions.reports.common.value.FormulaValue
com.crystaldecisions.reports.common.value.TimeValue
public class TimeValue
Field Summary | |
---|---|
static int |
hoursPerDay
|
static TimeValue |
max
|
static long |
maxTimeInNs
|
static TimeValue |
maxTimeValueInSeconds
The maximum TimeValue = t(23:59:59) |
static int |
millisecondsPerSecond
The number of milliseconds per second is 1000. |
static TimeValue |
min
|
static long |
minTimeInNs
|
static int |
minutesPerHour
|
static long |
nanosecondsPerDay
|
static long |
nanosecondsPerHour
|
static int |
nanosecondsPerMillisecond
The number of nanoseconds per millisecond is 1000000. |
static long |
nanosecondsPerMinute
|
static long |
nanosecondsPerSecond
|
static int |
nullCRTime
|
static int |
secondsPerDay
|
static int |
secondsPerMinute
|
Method Summary | |
---|---|
TimeValue |
addNumberToTime(double nSeconds)
|
FormulaValue |
coerceToDateTime()
|
FormulaValue |
coerceToTime()
|
int |
compareTo(java.lang.Object obj)
|
int |
compareTo(java.lang.Object obj,
java.util.Comparator stringComparator)
|
boolean |
equals(java.lang.Object obj,
boolean caseInsensitive)
|
static TimeValue |
From1900Format(double inputTime)
|
static TimeValue |
fromCalendar(java.util.Calendar calendar)
|
static TimeValue |
fromCRTime(int CRTime)
|
static TimeValue |
fromHMS(int hours,
int minutes,
double seconds)
|
static TimeValue |
fromHMSN(int hours,
int minutes,
int seconds,
long nanoseconds)
|
static TimeValue |
fromOleDate(double OleDate)
|
static TimeValue |
fromTimeInNs(long timeInNs)
|
int |
getCRTime()
|
static int |
getCRTime(TimeValue time)
|
int |
getEncodedSize(ValueType type)
|
int |
getEncodedSizeForArchive(ValueType type)
|
int |
getHours()
|
static int |
getHours(TimeValue time)
|
java.util.Date |
getJavaDate()
|
static int |
GetMaxEncodedSize()
|
double |
getMilliseconds()
|
int |
getMinutes()
|
static int |
getMinutes(TimeValue time)
|
long |
getNanoseconds()
|
static long |
getNanoseconds(TimeValue time)
|
double |
getOleDate()
|
double |
getSeconds()
|
long |
getTimeInNs()
|
ValueType |
getValueType()
|
int |
getWholeMilliseconds()
|
int |
getWholeSeconds()
|
static int |
getWholeSeconds(TimeValue time)
|
int |
hashCode(boolean caseInsensitive)
|
static TimeValue |
Load(java.io.DataInput in)
|
static TimeValue |
LoadFromArchive(IInputArchive ar)
|
static long |
NormalizeTimeInNs(long timeInNs)
|
static TimeValue |
now()
|
void |
store(ValueType type,
ExtendedDataOutput out)
|
void |
storeToArchive(ValueType type,
IOutputArchive ar)
|
static double |
To1900Format(TimeValue time)
|
java.lang.String |
toString()
|
Methods inherited from class com.crystaldecisions.reports.common.value.FormulaValue |
---|
coerce, coerceToArray, coerceToArray, coerceToBoolean, coerceToBoolean, coerceToCurrency, coerceToCurrency, coerceToDate, coerceToDate, coerceToDateTime, coerceToNumber, coerceToNumber, coerceToRange, coerceToRange, coerceToRangeArray, coerceToRangeArray, coerceToString, coerceToString, coerceToTime, getFormulaValueType, Load, LoadFromArchive, makeZeroValue |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int nullCRTime
public static final int hoursPerDay
public static final int minutesPerHour
public static final int secondsPerMinute
public static final int secondsPerDay
public static final int millisecondsPerSecond
The number of milliseconds per second is 1000.
public static final int nanosecondsPerMillisecond
The number of nanoseconds per millisecond is 1000000.
public static final long nanosecondsPerSecond
public static final long nanosecondsPerMinute
public static final long nanosecondsPerHour
public static final long nanosecondsPerDay
public static final long minTimeInNs
public static final long maxTimeInNs
public static final TimeValue min
public static final TimeValue max
public static final TimeValue maxTimeValueInSeconds
The maximum TimeValue = t(23:59:59)
Method Detail |
---|
public void store(ValueType type, ExtendedDataOutput out) throws java.io.IOException
java.io.IOException
public void storeToArchive(ValueType type, IOutputArchive ar) throws ArchiveException
ArchiveException
public static TimeValue Load(java.io.DataInput in) throws java.io.IOException
java.io.IOException
public static TimeValue LoadFromArchive(IInputArchive ar) throws ArchiveException
ArchiveException
public static int GetMaxEncodedSize()
public int getEncodedSizeForArchive(ValueType type)
public int getEncodedSize(ValueType type)
public static long NormalizeTimeInNs(long timeInNs)
public static TimeValue now()
public static TimeValue fromTimeInNs(long timeInNs)
public static TimeValue fromCRTime(int CRTime)
public static TimeValue fromOleDate(double OleDate)
public double getOleDate()
public static TimeValue fromHMSN(int hours, int minutes, int seconds, long nanoseconds)
public static TimeValue fromHMS(int hours, int minutes, double seconds)
public static TimeValue fromCalendar(java.util.Calendar calendar)
public long getTimeInNs()
public static int getCRTime(TimeValue time)
public static int getHours(TimeValue time)
public static int getMinutes(TimeValue time)
public static int getWholeSeconds(TimeValue time)
public static long getNanoseconds(TimeValue time)
public int getCRTime()
public int getHours()
public int getMinutes()
public int getWholeSeconds()
public double getSeconds()
public long getNanoseconds()
public double getMilliseconds()
public int getWholeMilliseconds()
public ValueType getValueType()
public FormulaValue coerceToTime()
coerceToTime
in class FormulaValue
public FormulaValue coerceToDateTime()
coerceToDateTime
in class FormulaValue
public boolean equals(java.lang.Object obj, boolean caseInsensitive)
public int compareTo(java.lang.Object obj, java.util.Comparator stringComparator)
public int hashCode(boolean caseInsensitive)
public int compareTo(java.lang.Object obj)
compareTo
in interface java.lang.Comparable
public TimeValue addNumberToTime(double nSeconds)
public java.lang.String toString()
public static double To1900Format(TimeValue time)
public static TimeValue From1900Format(double inputTime)
public java.util.Date getJavaDate()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |