PGTimeStampWithZone

Wrapper around std.datetime.SysTime to handle deserializing of libpq time stamps with time zone.

Timezone is acquired from PQparameterStatus call for TimeZone parameter. Database server doesn't send any info about time zone to client, the time zone is important only while showing time to an user.

Note: libpq has two compile configuration with HAS_INT64_TIMESTAMP and without (double time stamp format). The pgator should be compiled with conform flag to operate properly.

Constructors

this
this(SysTime time)
Undocumented in source.
this
this(pg_tm tm, fsec_t ts, TimeZone zone)
Undocumented in source.

Alias This

time

Members

Functions

toBson
Bson toBson()
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

fromBson
PGTimeStampWithZone fromBson(Bson bson)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta