Need help with react-time?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

andreypopp
210 Stars 26 Forks MIT License 103 Commits 5 Opened issues

Description

Component for React to render relative and/or formatted dates into <time> HTML5 element

Services available

!
?

Need anything else?

Contributors list

# 5,969
React
Neovim
reasonm...
Atom
67 commits
# 132,233
mopidy
Clojure
HTML
test-fr...
8 commits
# 533,231
C++
PHP
3 commits
# 261
TypeScr...
React
gatsby
netlify
3 commits
# 23,711
gtk
pidgin
ecmascr...
specifi...
2 commits
# 3,277
React
GraphQL
styleli...
develop...
1 commit
# 95,730
Shell
CSS
HTML
cssinjs
1 commit
# 125,535
HTML
Redux
CSS
node
1 commit
# 30,744
lodash
TypeScr...
CSS
Redux
1 commit
# 84,579
cloudin...
React N...
PureScr...
playfra...
1 commit
# 754,442
JavaScr...
1 commit

React Time

Component for React to render relative and/or formatted dates by using

HTML5 element and preserving machine readable format in
datetime
attribute.

Installation

% npm install react-time

Usage

import React from 'react'
import Time from 'react-time'

class MyComponent extends React.Component {

render() { let now = new Date() let wasDate = new Date("Thu Jul 18 2013 15:48:59 GMT+0400") return (

Today is

This was

) } }

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.