I hereby claim:
- I am harryman on github.
- I am notenoughentropy (https://keybase.io/notenoughentropy) on keybase.
- I have a public key ASDoCU2d5-0_JnodYyXW3r8C0TaTLdxG06Y9n2ajFkYHUwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
db.txs.find({ | |
ts:{$ne:"",$type:2}//selects only ts(timestamps) that are not empty and are strings | |
},{ | |
ts:1 //returns only the string and _id | |
}).forEach(function(ob){//iterates | |
var out = new Date(ob.ts); | |
db.txs.update({_id:ob._id},{$set:{"ts":out}}); | |
}); |