New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

empower-clock

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

empower-clock

--- ### Installation --- ``` npm i empower-clock ``` ### Usage ``` Include in the component:

  • 0.1.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Empower Category Menu


Installation


npm i empower-clock

Usage

Include in the component:

import Clock from 'empower-clock';

Properties

date - A string datetime, sample format is 3/31/2022, 2:15:22 PM
format - A desired format you wanted to be returned based on the date props.
ticking - Make this true if you want your clock / date to be realtime updating, and false if you want a static clock

supported format

datetime - Mon, 01 Jan 2020 at 12:00PM
date - Mon, 01 Jan 2020
inquiry-date-standard - 10 Feb 2021
date-standard - 2021-02-10 15:49
full-year - 2022
full-month - February
month-year - Feb 2021
full-month-year - February 2021
month-day-year - February 10, 2021
time - 3:58 PM
day-name-full - Tuesday

Example


const sampleProps = {
  date: '3/31/2022, 2:15:22 PM',
  format: 'time',
  ticking: true,
};



const App = () => {

  return (
    <div className="sample-div">
      <Clock
        {...sampleProps}
      />
    </div>
  );
}

export default App;

FAQs

Package last updated on 12 Apr 2022

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