Class: Time
- Inherits:
-
Object
- Object
- Time
- Defined in:
- lib/ddp/ejson.rb
Overview
Builtin EJSON types:
Instance Method Summary collapse
Instance Method Details
#as_ejson ⇒ Object
124 125 126 127 |
# File 'lib/ddp/ejson.rb', line 124 def as_ejson # milliseconds since epoch { '$date' => (to_f * 1000).to_i } end |