Sha256: 862d52ac4d9cb54d0a577d72a6bac0dca84d17841a73b079d188dc455ac90692
Contents?: true
Size: 627 Bytes
Versions: 18
Compression:
Stored size: 627 Bytes
Contents
# -*- ruby -*- module PG module BinaryDecoder # Convenience classes for timezone options class TimestampUtc < Timestamp def initialize(params={}) super(params.merge(flags: PG::Coder::TIMESTAMP_DB_UTC | PG::Coder::TIMESTAMP_APP_UTC)) end end class TimestampUtcToLocal < Timestamp def initialize(params={}) super(params.merge(flags: PG::Coder::TIMESTAMP_DB_UTC | PG::Coder::TIMESTAMP_APP_LOCAL)) end end class TimestampLocal < Timestamp def initialize(params={}) super(params.merge(flags: PG::Coder::TIMESTAMP_DB_LOCAL | PG::Coder::TIMESTAMP_APP_LOCAL)) end end end end # module PG
Version data entries
18 entries across 18 versions & 1 rubygems