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