class BSON::ObjectId
def generation_time
- 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
(Time)
- The time the id was generated.
def generation_time ::Time.at(generate_data.unpack1('N')).utc end