String beginTime=1990-10-02 12:12
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd hh:mm");
Date date = df.parse(beginTime);
Long time = date.getTime();
System.err.println("日期: " + time);
beginTime = String.valueOf(time).substring(0, 10);
time = Long.parseLong(beginTime);
beginTime = df.format(new Date((time + 1800) * 1000L));
System.out.println(beginTime);
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd hh:mm");
Date date = df.parse(beginTime);
Long time = date.getTime();
System.err.println("日期: " + time);
beginTime = String.valueOf(time).substring(0, 10);
time = Long.parseLong(beginTime);
beginTime = df.format(new Date((time + 1800) * 1000L));
System.out.println(beginTime);