postprefix
1/31/2014 - 4:19 AM

remind me

remind me
	dialog.ask("When do you want to be reminded?","","use military time e.g. 15:20", function (time) {
	reminder = op.getLineText();
	dialog.alert("You have asked to be reminded to " + reminder + " at " + time + " today");
	var myVar=setInterval(function(){myTimer()},60000);
	function myTimer() {
	var now = clock.now().toString(); 
	var date = clock.now().toDateString();
	var due = date + " " + time + ":00 GMT-0500 (EST)"; 
	if (now > due) { dialog.alert (reminder); clearInterval(myVar); } 
	}
	});