receptor/src/date.js
2017-09-08 16:47:09 +09:00

6 lines
139 B
JavaScript

import moment from 'moment';
export default function date(when) {
return `${when.format("YYYY-MM-DD LTS")} (${when.from(moment())})`;
}