/** @jsx React.DOM */ var Timestamp = React.createClass({ render: function() { if (this.props.timestamp <= 0) { return
N/A
; } var t = new Date(this.props.timestamp * 1000); var formatted = t.format('Y/m/d @ g:i:s a'); return (
{ formatted }
); }, });