Scheduling with Java Threads

Get the desired start time for your task from a form: String startTime = request.getParameter(“startTime”); String startDate = request.getParameter(“startDate”); //assume time is in HH:MM format, date is in MMDDYEAR format int startHour = Integer.parseInt(startTime.substring(0, 2)); int startMin = Integer.parseInt(startTime.substring(3, 5)); int startMonth = Integer.parseInt(startDate.substring(0, 2)); int startDate = Integer.parseInt(startDate.substring(2, 4)); int startYear = Integer.parseInt(startDate.substring(4, 8)); […]

Continue reading →

Dojo Minutes – Time

<link rel=”StyleSheet” type=”text/css” href=”http://ajax.googleapis.com/ajax/libs /dojo/1.6/dijit/themes/claro/claro.css”> <link rel=”StyleSheet” type=”text/css” href=”http://ajax.googleapis.com/ajax/libs /dojo/1.6/dojo/resources/dojo.css”> dojo.require(“dojo.date.locale”); dojo.require(“dijit.form.Button”); dojo.require(“dojo.parser”); dojo.addOnLoad(function() { var time = dojo.date.locale.format(new Date(), { selector: ‘time’, timePattern: ‘HH:mm:ss’ }); console.log(time); //display current time });

Continue reading →