Class Time
In: lib/couchrest/mixins/properties.rb
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

Public Class methods

returns a local time value much faster than Time.parse

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]