-
- All Superinterfaces:
ScalarTyped
,ScalarValued
,TokenTyped
,TokenValued
- All Known Subinterfaces:
TimeInputField
,TimeValuedIterator
- All Known Implementing Classes:
NullToken
,TimeRegister
,TimeToken
public interface TimeValued extends ScalarValued
ATokenValued
object containing a time value.- See Also:
TokenTypeConstant#TIME
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
asDayMillis()
Gets the contained time value as the number of milliseconds elapsed since midnight.TimeOfDay
asTimeOfDay()
Gets the contained time value.-
Methods inherited from interface com.pervasive.datarush.tokens.scalar.ScalarValued
getType, isZero
-
Methods inherited from interface com.pervasive.datarush.tokens.TokenValued
isNull
-
-
-
-
Method Detail
-
asDayMillis
int asDayMillis()
Gets the contained time value as the number of milliseconds elapsed since midnight.- Returns:
- the contained value as milliseconds since midnight.
If null valued, as indicated by
TokenValued.isNull()
,0
is returned.
-
asTimeOfDay
TimeOfDay asTimeOfDay()
Gets the contained time value. This value represents the timezone free time portion of a timestamp.- Returns:
- the contained value.
If null valued, as indicated by
TokenValued.isNull()
,null
is returned.
-
-