Java tutorial
//package com.java2s; import java.util.Calendar; import java.util.Date; public class Main { private static Date get8Hours10MinsAgo() { Calendar calendar = Calendar.getInstance(); calendar.add(Calendar.HOUR, -8); calendar.add(Calendar.MINUTE, -10); return calendar.getTime(); } }