# # calculating the end of time in ruby # n_bits = [42].pack('i').size * 8 max_long = ((2 ** n_bits) / 2 - 1) end_of_time = Time.at(max_long).utc p end_of_time # thx for the 64 bit catch from http://twitter.com/drbrain/ !