MobilityDB  1.0

◆ tinstant_make()

TInstant* tinstant_make ( Datum  value,
TimestampTz  t,
Oid  basetypid 
)

Construct a temporal instant value from the arguments.

The memory structure of a temporal instant value is as follows

----------------------------------
( TInstant )_X | ( Value )_X |
----------------------------------

where the _X are unused bytes added for double padding.

Parameters
valueBase value
tTimestamp
basetypidOid of the base type