Files: b825cc4a398547f81f4d9c4336f2f619ab910f54 / modules / timestamp.js
187 bytesRaw
1 | var h = require('hyperscript') |
2 | var moment = require('moment') |
3 | |
4 | exports.message_meta = function (msg) { |
5 | return h('a.enter', {href: '#'+msg.key}, moment(msg.value.timestamp).fromNow()) |
6 | } |
7 |
Built with git-ssb-web