MobilityDB 1.3
Loading...
Searching...
No Matches

◆ timestamp_in_common()

TimestampTz timestamp_in_common ( const char *  str,
int32  typmod,
bool  withtz 
)

Return either timestamp or a timestamp with timezone from its string representation.

Parameters
[in]strString
[in]typmodPrecision
[in]withtzTrue when using timezone
Returns
On error return DT_NOEND
Note
The function returns a TimestampTz that must be cast to a Timestamp when calling the function with the last argument to false