MobilityDB 1.1

◆ tinstant_make()

TInstant * tinstant_make ( Datum  value,
meosType  temptype,
TimestampTz  t 
)

Construct a temporal instant from the arguments.

The memory structure of a temporal instant is as follows

----------------
( TInstant )_X |
----------------
Structure to represent temporal values of instant subtype.
Definition: meos.h:148

where the attribute value of type Datum in the struct stores the base value independently of whether it is passed by value or by reference. For values passed by reference, the additional bytes needed are appended at the end of the struct upon creation.

Parameters
valueBase value
tTimestamp
temptypeBase type
SQL Function:
tbool_inst(), tint_inst(), tfloat_inst(), ttext_inst(), etc.