binaryValueAs - multiple declarations

Function binaryValueAs

Returns value timestamp with time zone as SysTime

SysTime binaryValueAs(T) (
  in Value v
) @trusted
if (is(T == 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.

Because of these differences, it can happen that database value will not fit to the SysTime range of values.

Function binaryValueAs

Returns value data as native Date

Date binaryValueAs(T) (
  in Value v
) @trusted
if (is(T == Date));

Function binaryValueAs

Returns value time without time zone as native TimeOfDay

TimeOfDay binaryValueAs(T) (
  in Value v
) @trusted
if (is(T == TimeOfDay));

Function binaryValueAs

Returns value timestamp without time zone as TimeStamp

TimeStamp binaryValueAs(T) (
  in Value v
) @trusted
if (is(T == TimeStamp));

Function binaryValueAs

Returns value timestamp with time zone as TimeStampUTC

TimeStampUTC binaryValueAs(T) (
  in Value v
) @trusted
if (is(T == TimeStampUTC));

Function binaryValueAs

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

DateTime binaryValueAs(T) (
  in Value v
) @trusted
if (is(T == DateTime));

Function binaryValueAs

Returns value time with time zone as TimeOfDayWithTZ

TimeOfDayWithTZ binaryValueAs(T) (
  in Value v
) @trusted
if (is(T == TimeOfDayWithTZ));

Function binaryValueAs

Returns value time with time zone as Interval

Interval binaryValueAs(T) (
  in Value v
) @trusted
if (is(T == Interval));