Package de.uplanet.lucy.server.scripting
Klasse ChimeraDate
java.lang.Object
java.util.Date
java.sql.Timestamp
de.uplanet.lucy.server.scripting.ChimeraDate
- Alle implementierten Schnittstellen:
IDateTimeValueHolder,IValueHolder<Date>,Serializable,Cloneable,Comparable<Date>
This class represents a data/time value as both a
java.sql.Timestamp
and as a IDateTimeValueHolder.
Note: Use this class sparingly, and for scripting purposes only.
- Siehe auch:
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungChimeraDate(long p_lTime) ChimeraDate(Timestamp p_ts) ChimeraDate(Date p_dt) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungasDate()Get the current date, i.e. the instance in time with its UTC time part set to zero.Get the current date, i.e. the instance in time with its time part set to zero in the given time zone.Get the current date, i.e. the instance in time with its time part set to zero in the given time zone.asTime()Get the current time, i.e. the instance in time with its date set to zero 1970-01-01 in the UTC time zone.Get the canonical lexical representation of this value according to it's datatype.Get the raw data that this value holder holds.getType()The type of data this value holder holds.getValue()Get the data that this value holder holds.Discard the fractional seconds using the UTC time zone.getWithoutFractionalSeconds(String p_strTimeZone) Discard the fractional seconds.Discard the fractional seconds.booleanhasValue()Check if this value holder currently holds data or not.Von Klasse geerbte Methoden java.sql.Timestamp
after, before, compareTo, compareTo, equals, equals, from, getNanos, getTime, hashCode, setNanos, setTime, toInstant, toLocalDateTime, toString, valueOf, valueOfVon Klasse geerbte Methoden java.util.Date
after, before, clone, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTimezoneOffset, getYear, parse, setDate, setHours, setMinutes, setMonth, setSeconds, setYear, toGMTString, toLocaleString, UTC
-
Konstruktordetails
-
ChimeraDate
public ChimeraDate(long p_lTime) -
ChimeraDate
-
ChimeraDate
-
-
Methodendetails
-
getType
Beschreibung aus Schnittstelle kopiert:IValueHolderThe type of data this value holder holds.- Angegeben von:
getTypein SchnittstelleIValueHolder<Date>- Gibt zurück:
IxDatatype.DATETIME.
-
getValue
Beschreibung aus Schnittstelle kopiert:IValueHolderGet the data that this value holder holds.Implementations MUST ensure that multiple calls to this method will return values that equal each other.
- Angegeben von:
getValuein SchnittstelleIValueHolder<Date>- Gibt zurück:
- The data.
-
getRawValue
Beschreibung aus Schnittstelle kopiert:IValueHolderGet the raw data that this value holder holds.- Angegeben von:
getRawValuein SchnittstelleIValueHolder<Date>- Gibt zurück:
- The raw data.
-
hasValue
public boolean hasValue()Beschreibung aus Schnittstelle kopiert:IValueHolderCheck if this value holder currently holds data or not.- Angegeben von:
hasValuein SchnittstelleIValueHolder<Date>- Gibt zurück:
trueif the data holder holds data, orfalseotherwise.
-
getCanonicalLexicalRepresentation
Beschreibung aus Schnittstelle kopiert:IValueHolderGet the canonical lexical representation of this value according to it's datatype.- Angegeben von:
getCanonicalLexicalRepresentationin SchnittstelleIValueHolder<Date>- Gibt zurück:
- The canonical lexical representation of the current date.
- Siehe auch:
-
getWithoutFractionalSeconds
Discard the fractional seconds using the UTC time zone.- Gibt zurück:
- The date/time with fractional seconds set to zero.
-
getWithoutFractionalSeconds
Discard the fractional seconds.- Parameter:
p_strTimeZone- The time zone to be used.- Gibt zurück:
- The date/time with fractional seconds set to zero.
-
getWithoutFractionalSeconds
Discard the fractional seconds.- Parameter:
p_tz- The time zone to be used.- Gibt zurück:
- The date/time with fractional seconds set to zero.
-
asDate
Get the current date, i.e. the instance in time with its UTC time part set to zero.- Gibt zurück:
- The current date.
-
asDate
Get the current date, i.e. the instance in time with its time part set to zero in the given time zone.- Parameter:
p_strTimeZone- The time zone to be used.- Gibt zurück:
- The current date.
-
asDate
Get the current date, i.e. the instance in time with its time part set to zero in the given time zone.- Parameter:
p_tz- The time zone to be used.- Gibt zurück:
- The current date.
-
asTime
Get the current time, i.e. the instance in time with its date set to zero 1970-01-01 in the UTC time zone.- Gibt zurück:
- The current time.
-