universal-user-time-display
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

Universal User Time Display

How to Use the component

  • <UniversalTimeDisplayComponent currentUtcInMs={...} zone:{...} format={...} backgroundColor={...} color={...} />

The components accepts the following props

  • currentUtcInMs - The current UTC in millis (number). If not provided, it takes the UTC from your system
  • zone - Valid Time Zone name (do not give codes like 'CST', 'PST' etc) of the user (eg, "America/Los_Angeles"). If not provided, defaults to "Europe/London".
  • format - "HH" | 'hh'. 'HH' for 24 hr format and 'hh' am/pm format.
  • backgroundColor - the background color for the time display
  • color - the color for the time display.

Readme

Keywords

none

Package Sidebar

Install

npm i universal-user-time-display

Weekly Downloads

0

Version

1.0.4

License

ISC

Unpacked Size

8.64 kB

Total Files

8

Last publish

Collaborators

  • pankajdhurandhar06