1.0.13 • Published 1 year ago

react-date-timer-moment v1.0.13

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

About Package

The react-date-timer-moment NPM package is a lightweight and easy-to-use solution for adding real-time date and time functionality to your web applications. With a simple integration, you can showcase the current date and time to your users, dynamically updating without the need for page refreshes. Customize the display format, time zones, and styling effortlessly, providing a seamless and informative experience. Enhance your user interfaces with this package to keep your audience informed and engaged with accurate, live date and time information.

Install

npm install react-date-timer-moment --save

how to use DateTimer

import React from "react";
import { DateTimer } from 'react-date-timer-moment';

class Example extends Component {
  render() {
    return <DateTimer dateTimeFormat="ddd, DD-MM-YY hh:mm:ss A" className="testClass" timeZone="America/Vancouver" />;
  }
}

Properties

PropertyTypeRequiredDefault valueDescription
dateTimeFormatstringyesFormat of time zone to display
classNamestringnoAdditional style classes
timeZonestringnoSystem time zoneShow time according to zone e.g. America/New_York

how to use TimeDuration

import React from "react";
import { TimeDuration } from 'react-date-timer-moment';

class Example extends Component {
  render() {
    return <TimeDuration className="className" id="idName" />;
  }
}

Properties

PropertyTypeRequiredDefault valueDescription
idstringnotime-duration-idid of element if want to change
classNamestringnoAdditional style classes

Contribute

Feel free to send PR and any suggestions. Thanks

1.0.13

1 year ago

1.0.12

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago