// 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.Date;

public class TheOldWay {
    public static void main(String[] args) {
        Date d; // point in time + functionality to break up time in YMDHMS parts
        d = new Date();
        System.out.printf("%02d/%02d/%04d %02d:%02d:%02d\n", d.getDate(), 1 + d.getMonth(), 1900 + d.getYear(), d.getHours(), d.getMinutes(), d.getSeconds());
    }
}
