Changes

Jump to: navigation, search
show time in
=Ubiquity commands=
==Introduction== These are the results for the [[DPS909]]/[[OSD600]] [[Learning Collaborative Development Lab Fall 2008|lab 1]]. Place any and all common results, code, notes here.
====Zenit Wiki Search====
</pre>
----
 
====show time in====
[http://gist.github.com/128853 show-time-in] command by [[User: Jyoti | Jyoti]]
This command shows the current time in the place specified
 
 
 
CmdUtils.CreateCommand({
name: "show time in",
author: {name:"jyoti", email: "mail2jyoti88@gmail.com"},
description:"It will show the current time in the place you specified.",
takes: {"name of a place" : noun_arb_text},
_time: function(term)
{
return "http://www.timeanddate.com/worldclock/results.html?query="+term;
},
preview: function(pblock,pname)
{
var msg="It will show the current time in "+ pname.text;
pblock.innerHTML=msg;
},
execute: function(pname)
{
if (pname.text=="")
{
displayMessage("enter name of the place whose current time u want to know");
}
else
Utils.openUrlInBrowser(this._time(pname.text));
}
})
1
edit

Navigation menu