Class: PG::BinaryDecoder::TimestampUtc

Inherits:
Timestamp
  • Object
show all
Defined in:
lib/pg/binary_decoder.rb

Overview

Convenience classes for timezone options

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ TimestampUtc

Returns a new instance of TimestampUtc.



8
9
10
# File 'lib/pg/binary_decoder.rb', line 8

def initialize(params={})
	super(params.merge(flags: PG::Coder::TIMESTAMP_DB_UTC | PG::Coder::TIMESTAMP_APP_UTC))
end