class PG::TextEncoder::TimestampUtc
Public Instance Methods
Source
# File lib/pg/text_encoder.rb, line 21 def encode(value) value.respond_to?(:utc) ? value.utc.strftime("%Y-%m-%d %H:%M:%S.%N") : value end
# File lib/pg/text_encoder.rb, line 21 def encode(value) value.respond_to?(:utc) ? value.utc.strftime("%Y-%m-%d %H:%M:%S.%N") : value end