snowflake/home/ags/config/js/widgets/time.js
notohh a9626cfd89
All checks were successful
flake check / check (push) Successful in 9m47s
fmt check / check (push) Successful in 1m14s
ags: updates
2024-01-03 17:08:17 -05:00

18 lines
333 B
JavaScript

import { Widget, Utils } from '../../import.js';
const Time = () => Widget.Box({
child: Widget.Label({
className: "date"
}).poll(
1000,
(self) =>
Utils.execAsync(["date", "+%a %b %d %H:%M"]).then((time) =>
self.label = time
),
),
});
export {
Time
}