rdi-react-time

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i rdi-react-time

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

9.72 kB

Total Files

7

Last publish

Collaborators

  • rochnyak-d-i