16 lines
265 B
JavaScript
16 lines
265 B
JavaScript
const date = Variable("", {
|
|
poll: [1000, 'date "+ %a %b %d %I:%M:%S %p"'],
|
|
});
|
|
|
|
const Clock = () => {
|
|
return {
|
|
component: Widget.Label({
|
|
class_name: "clock",
|
|
label: date.bind(),
|
|
}),
|
|
isVisible: true,
|
|
};
|
|
};
|
|
|
|
export { Clock };
|