# File lib/bson/bson_ruby.rb, line 298 def deserialize_date_data(buf) unsigned = buf.get_long() milliseconds = unsigned >= 2 ** 64 / 2 ? unsigned - 2**64 : unsigned Time.at(milliseconds.to_f / 1000.0).utc # at() takes fractional seconds end