Class: Time

Inherits:
Object
  • Object
show all
Defined in:
lib/ddp/ejson.rb

Overview

Builtin EJSON types:

Instance Method Summary collapse

Instance Method Details

#as_ejsonObject



124
125
126
127
# File 'lib/ddp/ejson.rb', line 124

def as_ejson
	# milliseconds since epoch
	{ '$date' => (to_f * 1000).to_i }
end