Sha256: ce8f07b6d1ad66f904b304e1c17e4a5354962ae089c0aefdc11df5f51f133d8c
Contents?: true
Size: 444 Bytes
Versions: 2
Compression:
Stored size: 444 Bytes
Contents
/** @jsx React.DOM */ // render a <time> tag. props.timestamp should be a timestamp // that moment can parse, props.format should be one of the // format strings accepted by moment (optional). var Time = React.createClass({ render: function(){ var timestamp = this.props.timestamp; var format = this.props.format || 'lll'; var m = moment(timestamp); return <time dateTime={m.format()}>{m.format(format)}</time>; } })
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
conjur-asset-ui-1.3.2 | public/js/views/time.js |
conjur-asset-ui-1.3.0 | public/js/views/time.js |