The WB-clock
module is a digital clock designed to complement the WallberryTheme
module. It displays the local time and date, and can display the local time for as many other locales as you care to configure.
To use this module, add it to the modules array in the config/config.js
file:
modules: [
{
module: "WallberryTheme/WB-clock",
position: "top_bar", // highly suggest using top_bar position
config: {
localCityName: "Seattle", // optional
otherCities: [
{name: "DC", timezone: "US/Eastern"}, // optional
{name: "Anchorage", timezone: "US/Alaska"} //optional
]
}
}
]
The following properties can be configured, all are optional:
Option | Type | Description |
---|---|---|
timeFormat |
String | Use 12 or 24 hour format. Possible values: 12 or 24 Default value: uses value of config.timeFormat |
dateTimeFormat |
String | Configure the date format as you like. Possible values: Docs Default value: "dddd, MMMM Do" |
hourMinuteFormat |
String | Configure clock format as you like. Possible values: Docs Default value: "h:mm" for 12 hour format, "HH:mm" for 24 hour format |
localCityName |
String | The name of your local city to displayed above the local clock. Default value: "" (None) |
OtherCities |
Array | A list of other city names (or whatever labels you like) and their timezones (see module config example above). For more information on which timezones are available check here. |