Created
July 21, 2014 04:31
-
-
Save mcqueenorama/1c617b2ed1b3a0aacf53 to your computer and use it in GitHub Desktop.
compound key
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function(doc) { | |
if (doc.matchedItem && doc.timeStamp) { | |
var dint = parseInt(doc.timeStamp) * 1000; | |
var ss = new Date(dint); | |
emit([ss.getFullYear(), ss.getMonth(), ss.getDate(), ss.getHours(), ss.getMinutes()], null); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment