World clock card

The time in several cities at once, with day and night, tomorrow and yesterday, and each city's offset from here.

Category: Time. Tags: Clocks and calendars, Offices and workplaces, Lobbies and reception.

Previews

World clock
Canvas
World clock
Corner
World clock
Chip

Views and forms

Views: canvas, corner, chip. Canvas forms: landscape, portrait, strip.

Card views, themes and publishing. Browse the gallery.

Data and privacy

This card uses its configured properties and live card data.

Properties

For theme, background, accent and position, see Common properties.

Set static properties in params. Bind data to a project card data key for live values; that document holds only dynamic properties. Without a data key, put the complete configuration in params. Nested rows describe the contents of their parent property.

Static properties

NameTypeDefaultValues and limitsDescription
citiesarrayminItems: 2; maxItems: 12; Required
cities[].labelstringminLength: 1; maxLength: 40; Required
cities[].timeZonestringminLength: 1; maxLength: 64; RequiredIANA zone.
hour12booleanfalse
showSecondsbooleanfalse
showDatebooleantrueShow Tomorrow, Yesterday or the weekday under each city.
facestring"digital""digital", "analog"
highlightinteger-1minimum: -1; maximum: 11Index of a home city to emphasise; -1 for none.

Dynamic properties

This card has no dynamic properties.

Canvas example

Add this item to a playlist page’s primitives. Publish the playlist and assign a screen.

{
  "id": "world-clock",
  "primitive": "card",
  "card": "world-clock",
  "major": 1,
  "params": {
    "theme": "neomustard",
    "cities": [
      {
        "label": "Example",
        "timeZone": "Example"
      },
      {
        "label": "Example",
        "timeZone": "Example"
      }
    ]
  },
  "rect": {
    "x": 0,
    "y": 0,
    "width": 1920,
    "height": 1080
  },
  "layer": 0,
  "content_fit": "fill"
}