polished documentation

This commit is contained in:
Chris Anderson 2008-09-29 23:39:57 -07:00
parent 26c4db7fc6
commit b3b58ffa83
6 changed files with 20 additions and 11 deletions

View file

@ -1,11 +1,9 @@
# this file must be loaded after the JSON gem
# This file must be loaded after the JSON gem and any other library that beats up the Time class.
class Time
# This date format sorts lexicographically
# and is compatible with Javascript's new Date(time_string) constructor.
# and is compatible with Javascript's <tt>new Date(time_string)</tt> 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'
# order is preserved. (There's no longer a need to set <tt>ENV['TZ'] = 'UTC'</tt>
# in your application.)
def to_json(options = nil)