Class Time
In: lib/couchrest/monkeypatches.rb
Parent: Object

This file must be loaded after the JSON gem and any other library that beats up the Time class.

Methods

to_json  

Public Instance methods

This date format sorts lexicographically and is compatible with Javascript‘s new Date(time_string) constructor. Note this this format stores all dates in UTC so that collation order is preserved. (There‘s no longer a need to set ENV[‘TZ’] = ‘UTC‘ in your application.)

[Validate]