PG::TextEncoder::

TimestampUtc class

Public Instance Methods

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