Temporal Types

Input and Output

  • asText: Return the Well-Known Text (WKT) representation

  • asMFJSON: Return the Moving Features JSON (MF-JSON) representation

  • asBinary, asHexWKB: Return the Well-Known Binary (WKB) or the Hexadecimal Well-Known Binary (HexWKB) representation

  • ttypeFromMFJSON: Input from the Moving Features JSON (MF-JSON) representation

  • ttypeFromBinary, ttypeFromHexWKB: Input from the Well-Known Binary (WKB) or from the Hexadecimal Well-Known Binary (HexWKB) representation

Constructors

  • ttype: Constructors for temporal types having a constant value

  • ttypeSeq: Constructors for temporal types of sequence subtype

  • ttypeSeqSet, ttypeSeqSetGaps: Constructors for temporal types of sequence set subtype

Conversions

  • ::: Convert a temporal value to a timestamptz span

Accessors

Transformations

  • ttypeInst, ttypeSeq, ttypeSeqSet: Transform a temporal value to another subtype

  • setInterp: Transform a temporal value to another interpolation

  • segmentMinDuration, segmentMaxDuration: Return a temporal boolean stating whether each segment of a continuous temporal sequence (set) has, respectively, at least or at most a given duration

  • shiftTime, scaleTime, shiftScaleTime: Shift and/or scale the time span of a temporal value by one or two intervals

  • unnest: Transform a nonlinear temporal value into a set of rows, each one is a pair composed of a base value and a period set during which the temporal value has the base value

Modifications

Restrictions

Comparisons

Traditional Comparisons

Ever and Always Comparisons

Temporal Comparisons

Miscellaneous