Since:
2.0.0
Deserialize UTC datetime from BSON.
Parameters:
The bson representing UTC datetime.
Returns:
The decoded UTC datetime.
See Also:
55 56 57 58
# 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