Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-live-clock

Package Overview
Dependencies
Maintainers
1
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-live-clock

React Live Clock

  • 0.0.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
14K
decreased by-10.84%
Maintainers
1
Weekly downloads
 
Created
Source

react-live-clock

React clock with time-zones
DEMO

Installing

Use npm to install react-react-live-clock

npm install --save react-live-clock

Quick Start

import React  from 'react';
import Clock from 'react-live-clock';

exports default class MyComponent extends React.Component {
    render() {
        <Clock format={'HH:mm:ss'} ticking={true} timezone={'US/Pacific'} />
    }
}

Outputs:

<time>10:15:34</time>

** Shows current time for 'US/Pacific' timezine and updats every second

Formatting

import React  from 'react';
import Clock from 'react-live-clock';

exports default class MyComponent extends React.Component {
    render() {
        <Clock format="YYYY/MM/DD">1976-04-19T12:59-0500</Clock>
    }
}

Outputs:

<time>1976/04/19</time>

** you can use any formatting from moment date library

License

This software is released under the MIT license. See LICENSE for more details.

Contributors

  • pvoznyuk

Keywords

FAQs

Package last updated on 31 May 2017

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc