Class: YugabyteYSQL::TextEncoder::TimestampWithTimeZone
- Inherits:
-
SimpleEncoder
- Object
- SimpleEncoder
- YugabyteYSQL::TextEncoder::TimestampWithTimeZone
- Defined in:
- lib/pg/text_encoder/timestamp.rb
Instance Method Summary collapse
Instance Method Details
#encode(value) ⇒ Object
19 20 21 |
# File 'lib/pg/text_encoder/timestamp.rb', line 19 def encode(value) value.respond_to?(:strftime) ? value.strftime("%Y-%m-%d %H:%M:%S.%N %:z") : value end |