// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
import java.util.*;
import java.text.*;

public class UKDK {
    private static final SimpleDateFormat df1 = new SimpleDateFormat("h.mma");
    private static final SimpleDateFormat df2 = new SimpleDateFormat("H.mm");
    public static void main(String[] args) {
        Date d = new Date();
        System.out.println(df1.format(d));
        System.out.println(df2.format(d));
    }
}
