class PG::TextEncoder::TimestampWithTimeZone

Constants

STRFTIME_ISO_DATETIME_WITH_TIMEZONE

Public Instance Methods

encode(value) click to toggle source
# File lib/pg/text_encoder.rb, line 21
def encode(value)
        value.respond_to?(:strftime) ? value.strftime(STRFTIME_ISO_DATETIME_WITH_TIMEZONE) : value
end