Skip to content

Commit

Permalink
Add note in readme on date and date time
Browse files Browse the repository at this point in the history
  • Loading branch information
durran committed Jan 10, 2014
1 parent 9df04d6 commit e3a5b2c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,12 @@ them.
- `BSON::Timestamp`: `{ "t" : 5, "i" : 30 }`
- `Regexp`: `{ "$regex" : "[abc]", "$options" : "i" }`

### Notes on Special Ruby Date Classes

As of 2.1.0, Ruby's `Date` and `DateTime` are able to be serialized, but when
they are deserialized they will always be returned as a `Time` since the BSON
specification only has a `Time` type and knows nothing about Ruby.

API Documentation
-----------------

Expand Down

0 comments on commit e3a5b2c

Please sign in to comment.