plasma-framework/scriptengines/javascript/tests/script-digital-clock/contents/code/main.js
Aaron J. Seigo 71789306b7 ok, this time _really_ move it over. svn is sometimes a little too forgiving / sloppy :(
svn path=/trunk/KDE/kdebase/runtime/; revision=967245
2009-05-13 00:55:25 +00:00

13 lines
306 B
JavaScript

plasmoid.dataUpdate = function(a, b)
{
label.text = "It is " + b.Time.toString() + " in " + a;
}
layout = new LinearLayout(plasmoid);
label = new Label();
layout.addItem(label);
print(dataEngine("time").query("UTC").Time.toString());
plasmoid.dataEngine("time").connectSource("UTC", plasmoid, 500);