PG::TextEncoder::

TimestampWithTimeZone class

Public Instance Methods

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