Java tutorial
import java.util.Date; public class MainClass { public static void main(String[] args) { Date now = new Date(); System.out.printf("one-or-two digit hour on a 12-hour: %tl/%Tl\n", now, now); } } //