module Avro::LogicalTypes::IntDate
Constants
- EPOCH_START
Public Class Methods
decode(int)
click to toggle source
# File lib/avro/logical_types.rb 28 def self.decode(int) 29 EPOCH_START + int 30 end
encode(date)
click to toggle source
# File lib/avro/logical_types.rb 24 def self.encode(date) 25 (date - EPOCH_START).to_i 26 end