1 import { Component, linkEvent } from 'inferno';
2 import * as moment from 'moment';
4 interface MomentTimeProps {
11 export class MomentTime extends Component<MomentTimeProps, any> {
13 constructor(props, context) {
14 super(props, context);
18 if (this.props.data.updated) {
20 <span className="font-italics">modified {moment.utc(this.props.data.updated).fromNow()}</span>
24 <span>{moment.utc(this.props.data.published).fromNow()}</span>