You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Miki Tebeka <mi...@saucelabs.com> on 2009/11/11 23:21:35 UTC

Getting revision date

Hello All,

Is it possible to get the date of the revision (or any timestamp associated
with it)?

http://localhost:5984/db/docid?revs_info=true returns the list of revision
but without any time stamp.

Thanks,
--
Miki Tebeka
miki@saucelabs.com

Re: Getting revision date

Posted by Miki Tebeka <mi...@saucelabs.com>.
Hello Paul,

>> Is it possible to get the date of the revision (or any timestamp associated
>> with it)?
> There is no concept of time in CouchDB as that would rely on a
> synchronized global clock which does not exist.
OK, thanks!

All the best,
-- 
Miki <mi...@saucelabs.com>

Re: Getting revision date

Posted by Paul Davis <pa...@gmail.com>.
Miki,

There is no concept of time in CouchDB as that would rely on a
synchronized global clock which does not exist.

HTH,
Paul Davis

On Wed, Nov 11, 2009 at 5:21 PM, Miki Tebeka <mi...@saucelabs.com> wrote:
> Hello All,
>
> Is it possible to get the date of the revision (or any timestamp associated
> with it)?
>
> http://localhost:5984/db/docid?revs_info=true returns the list of revision
> but without any time stamp.
>
> Thanks,
> --
> Miki Tebeka
> miki@saucelabs.com
>

Re: Getting revision date

Posted by Brian Candler <B....@pobox.com>.
On Wed, Nov 11, 2009 at 02:21:35PM -0800, Miki Tebeka wrote:
> Is it possible to get the date of the revision (or any timestamp associated
> with it)?
> 
> http://localhost:5984/db/docid?revs_info=true returns the list of revision
> but without any time stamp.

Not for revisions - you should add your own 'modified' timestamp when
updating.

However, if you used the time-based uuid generator, then you can work out
the creation time by parsing the document's _id.