2009-01-05 12:04:04 +01:00
|
|
|
plasmoid.dataUpdate = function(a, b)
|
|
|
|
{
|
|
|
|
label.text = "It is " + b.Time.toString() + " in " + a;
|
|
|
|
}
|
2009-01-05 09:08:38 +01:00
|
|
|
|
2009-01-05 12:04:04 +01:00
|
|
|
layout = new LinearLayout(plasmoid);
|
2009-01-05 09:08:38 +01:00
|
|
|
label = new Label();
|
|
|
|
layout.addItem(label);
|
|
|
|
|
2009-01-05 12:04:04 +01:00
|
|
|
print(dataEngine("time").query("UTC").Time.toString());
|
|
|
|
plasmoid.dataEngine("time").connectSource("UTC", plasmoid, 500);
|
2009-01-05 09:08:38 +01:00
|
|
|
|