Class | BinaryBlocker::PackedDateTimeEncoder |
In: |
lib/blocker.rb
|
Parent: | PackedNumberEncoder |
# File lib/blocker.rb, line 474 474: def initialize_options(*opts) 475: super 476: @opts[:length] = 14 477: end
# File lib/blocker.rb, line 479 479: def internal_block(val) 480: super sprintf("%04d%02d%02d%02d%02d%02d", val.year, val.month, val.mday, val.hour, val.min, val.sec).to_i 481: end