You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

react-timestamp

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-timestamp

A React component for displaying a datetime in the local timezone

2.0.0
Source
npmnpm
Version published
Weekly downloads
1.2K
-28.56%
Maintainers
1
Weekly downloads
 
Created
Source

Timestamp

A React component for displaying a datetime in the local timezone

Usage

npm install react-timestamp

Then:

import Timestamp from 'react-timestamp';

Use UTC times for the time prop.

<Timestamp time={thing.created_at} />
<Timestamp time="2015-10-10 10:30:00" format='short' />

Testing

npm test

Keywords

react

FAQs

Package last updated on 21 Dec 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts