couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Couchdb Wiki] Update of "ViewCollation" by ChrisAnderson
Date Wed, 23 Jul 2008 16:48:32 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.

The following page has been changed by ChrisAnderson:

The comment on the change is:
other date format advice

  emit(Date.parse(doc.created_at), doc);
+ Alternatively, if you use a date format which sorts lexicographically, such as "2008/06/09
13:52:11 +0000" you can just 
+ {{{
+ emit(doc.created_at, doc);
+ }}}
+ and avoid the conversion. As a bonus, this date format is compatible with the Javascript
date parser, so you can use ''new Date(doc.created_at)'' in your client side Javascript to
make date sorting easy in the browser.
  == Collation Specification ==

View raw message