// 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.Calendar;
import java.util.GregorianCalendar;

public class TimeFun {
    public static void main(String[] args) throws Exception {
        GregorianCalendar gc = new GregorianCalendar(1900, Calendar.JANUARY, 1);
        System.out.println(gc.getTime());
        //gc.setTimeInMillis(gc.getTimeInMillis()+ (38838L-1)*24*60*60*1000);
        gc.add(Calendar.DATE, 38838-1);
        System.out.println(gc.getTime());
    }
}
