Interface TimeValued

All Superinterfaces:
ScalarTyped, ScalarValued, TokenTyped, TokenValued
All Known Subinterfaces:
TimeInputField, TimeValuedIterator
All Known Implementing Classes:
NullToken, TimeRegister, TimeToken

public interface TimeValued extends ScalarValued
A TokenValued object containing a time value.
See Also:
  • TokenTypeConstant#TIME
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Gets the contained time value as the number of milliseconds elapsed since midnight.
    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 Details

    • 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.