Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including mozaik-ext-time with all npm packages installed. Try it out:

require("mozaik/package.json"); // mozaik is a peer dependency. require("react/package.json"); // react is a peer dependency. var mozaikExtTime = require("mozaik-ext-time")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

mozaik-ext-time v1.1.0

Mozaik time widgets

Mozaïk time widgets

License Travis CI NPM version Dependencies Coverage Status widget count

Time — Clock

Show analog clock from local or another timezone.

clock

parameters

keyrequireddescription
titlenoTitle of the widget
timezonenoName of the timezone, like America/Los_Angeles. See http://momentjs.com/timezone/ for possible values. Defaults to local time.
infonoFree textual value to show within clock. Special values are: timezone, date, time.
sunRisenoLocal time when sun rises (used for day/night indicator). Defaults to 6:00.
sunSetnoLocal time when sun sets (used for day/night indicator). Defaults to 18:00.

usage

{
  type: 'time.clock',
  info: 'date',
  columns: 1, rows: 1, x: 0, y: 0
},
{
  type: 'time.clock',
  timezone: 'America/Los_Angeles',
  info: 'timezone',
  sunRise: '6:30',
  sunSet: '17:43',
  columns: 1, rows: 1, x: 1, y: 0
},
{
  type: 'time.clock',
  info: 'Time is money!',
  columns: 1, rows: 1, x: 2, y: 0
}
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free