Peter, great work on the LIbBSON / Mongo drivers! DateTimes didn't seem to make it into the last release, so I looked at adding the functionality and noticed that you basically have it implemented in your master branch. However, there seems to be a small inconsistency at the moment since MongoDB uses milliseconds and Julia uses seconds.
Peter, great work on the LIbBSON / Mongo drivers! DateTimes didn't seem to make it into the last release, so I looked at adding the functionality and noticed that you basically have it implemented in your master branch. However, there seems to be a small inconsistency at the moment since MongoDB uses milliseconds and Julia uses seconds.
For reference see: https://docs.mongodb.org/manual/reference/bson-types/#date http://docs.julialang.org/en/release-0.4/stdlib/dates/#Dates.unix2datetime
I believe the simple fixes below should do the trick:
In LibBSON.jl/src/BSONIter.jl:
In LibBSON.jl/src/BSONObject.jl:
In LibBSON.jl/src/BSONArray.jl:
Turtle