Sha256: 5bcf00883f90b5c0860ce69f5a36fa2b02d115f0a643f88d45a050611fa17ba6

Contents?: true

Size: 230 Bytes

Versions: 31

Compression:

Stored size: 230 Bytes

Contents

# -*- ruby -*-
# frozen_string_literal: true

module PG
	module TextEncoder
		class Date < SimpleEncoder
			def encode(value)
				value.respond_to?(:strftime) ? value.strftime("%Y-%m-%d") : value
			end
		end
	end
end # module PG

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
pg-1.5.7-x86-mingw32 lib/pg/text_encoder/date.rb
pg-1.5.7-x64-mingw32 lib/pg/text_encoder/date.rb
pg-1.5.7-x64-mingw-ucrt lib/pg/text_encoder/date.rb
pg-1.5.7 lib/pg/text_encoder/date.rb
pg-1.5.6-x64-mingw-ucrt lib/pg/text_encoder/date.rb
pg-1.5.6-x64-mingw32 lib/pg/text_encoder/date.rb
pg-1.5.6-x86-mingw32 lib/pg/text_encoder/date.rb
pg-1.5.6 lib/pg/text_encoder/date.rb
pg-1.5.5-x86-mingw32 lib/pg/text_encoder/date.rb
pg-1.5.5-x64-mingw32 lib/pg/text_encoder/date.rb
pg-1.5.5-x64-mingw-ucrt lib/pg/text_encoder/date.rb
pg-1.5.5 lib/pg/text_encoder/date.rb
pg-1.5.4-x86-mingw32 lib/pg/text_encoder/date.rb
pg-1.5.4-x64-mingw32 lib/pg/text_encoder/date.rb
pg-1.5.4-x64-mingw-ucrt lib/pg/text_encoder/date.rb
pg-1.5.4 lib/pg/text_encoder/date.rb
pg-1.5.3-x64-mingw32 lib/pg/text_encoder/date.rb
pg-1.5.3-x64-mingw-ucrt lib/pg/text_encoder/date.rb
pg-1.5.3-x86-mingw32 lib/pg/text_encoder/date.rb
pg-1.5.3 lib/pg/text_encoder/date.rb