# File lib/innodb/data_type.rb, line 261 def value(data) time = BinData::Int24be.read(data) ^ (-1 << 23) sign = "-" if time < 0 time = time.abs "%s%02d:%02d:%02d" % [sign, time / 10000, (time / 100) % 100, time % 100] end