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.

Enums

InfinityState
enum InfinityState

Functions

binaryValueAs
SysTime binaryValueAs(Value v)

Returns value timestamp with time zone as 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.

Static functions

toPgDate
toPgDate(Date d)

Structs

PgDate
struct PgDate
TTimeStamp
struct TTimeStamp(bool isWithTZ)

Structure to represent PostgreSQL Timestamp with/without time zone

Meta

Authors

NCrashed <ncrashed@gmail.com>