class BSON::ObjectId

def generation_time

Other tags:
    Since: - 2.0.0

Returns:
  • (Time) - The time the id was generated.

Other tags:
    Example: Get the generation time. -
def generation_time
  ::Time.at(generate_data.unpack1('N')).utc
end