PG::BinaryDecoder::

Timestamp

class
Superclass
PG::SimpleDecoder

This is a decoder class for conversion of PostgreSQL binary timestamps to Ruby Time objects.

The following flags can be used to specify timezone interpretation:

Example:

deco = PG::BinaryDecoder::Timestamp.new(flags: PG::Coder::TIMESTAMP_DB_UTC | PG::Coder::TIMESTAMP_APP_LOCAL)
deco.decode("\0"*8)  # => 2000-01-01 01:00:00 +0100