Java tutorial
import java.util.Date; public class MainClass { public static void main(String[] args) { Date now = new Date(); System.out.printf("Locale-specific morning/afternoon indicator: %tp/%Tp\n", now, now); } } //