dpq2.conv.time

PostgreSQL time types binary format.

Members

Aliases

TimeStamp
alias TimeStamp = TTimeStamp!false
Undocumented in source.
TimeStampUTC
alias TimeStampUTC = TTimeStamp!true
Undocumented in source.

Functions

binaryValueAs
SysTime binaryValueAs(Value v)

Returns value timestamp with time zone as SysTime Note that SysTime has a precision in hnsecs and PG TimeStamp in usecs. It means that PG value will have 10 times lower precision. And as both types are using long for internal storage it also means that PG TimeStamp can store greater range of values than SysTime.

binaryValueAs
Date binaryValueAs(Value v)

Returns value data as native Date

binaryValueAs
TimeOfDay binaryValueAs(Value v)

Returns value time without time zone as native TimeOfDay

binaryValueAs
TimeStamp binaryValueAs(Value v)

Returns value timestamp without time zone as TimeStamp

binaryValueAs
TimeStampUTC binaryValueAs(Value v)

Returns value timestamp with time zone as TimeStampUTC

binaryValueAs
DateTime binaryValueAs(Value v)

Returns value timestamp without time zone as DateTime (it drops the fracSecs from the database value)

Manifest constants

POSTGRES_EPOCH_DATE
enum POSTGRES_EPOCH_DATE;
Undocumented in source.
POSTGRES_EPOCH_JDATE
enum POSTGRES_EPOCH_JDATE;
Undocumented in source.

Meta

Authors

NCrashed <ncrashed@gmail.com>