incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hank Knight <hknight...@gmail.com>
Subject Automatic Unix Timestamp
Date Fri, 26 Jul 2013 15:36:09 GMT
How can I add a Unix Timestamp to a document, based on the server's clock?

This gives me an error:
JSON.parse: unexpected character

{
 "_id":"12345",
 "user":"joe",
 "unixtimestamp": Math.round(new Date().getTime()/1000),
 "fruit":"peach"
}

Mime
View raw message