1.0.0 • Published 5 years ago
rdi-react-time v1.0.0
rdi-react-time
Installation
npm i rdi-react-time
Usage
import Time from 'rdi-react-time';
const date = new Date();
// static
<Time date={date} format="YYYY-MM-DD HH:mm:ss" />
// dynamic
<Time autoUpdate intervalUpdate={1 * 1000} date={date} />
Props
- className {string}
- date {string|Date}
- format {string}
- autoUpdate {boolean}
- timeUpdate {number}
- calendarUntilDays {number}
Development
npm i && npm run build
Tests
npm test
1.0.0
5 years ago