Module: BSON::DateTime
- Defined in:
- lib/bson/date_time.rb
Overview
Injects behaviour for encoding date time values to raw bytes as specified by the BSON spec for time.
Constant Summary collapse
- FACTOR =
Constant to multiple the seconds fraction my for millis in REE.
86400000000
Instance Method Summary collapse
-
#to_bson(encoded = ''.force_encoding(BINARY)) ⇒ String
Get the date time as encoded BSON.
-
#to_time ⇒ Time
REE does not define a to_time on DateTime, so if we are using REE we define it ourselves.