Is there any way to get the current date and/or time? For example:

var today = new Date();
hours = today.getHours();

works in JavaScript. Is there anything like this in Java?