PG::TextEncoder::

TimestampWithTimeZone

class
Superclass
PG::SimpleEncoder

Public Instance Methods

anchor
encode(value)
# File lib/pg/text_encoder.rb, line 27
def encode(value)
        value.respond_to?(:strftime) ? value.strftime("%Y-%m-%d %H:%M:%S.%N %:z") : value
end