Deserialize UTC datetime from BSON.
@param [ BSON ] bson The bson representing UTC datetime.
@return [ Time ] The decoded UTC datetime.
@see bsonspec.org/#/specification
@since 2.0.0
# File lib/bson/time.rb, line 55 def from_bson(bson) seconds, fragment = Int64.from_bson(bson).divmod(1000) at(seconds, fragment * 1000).utc end
Generated with the Darkfish Rdoc Generator 2.