/** * @author Administrator * * TODO To change the template for this generated type comment go to Window - * Preferences - Java - Code Style - Code Templates */ public class Times { public void printTime(){ Calendar yestoday = Calendar.getInstance(); yestoday.add(Calendar.DAY_OF_MONTH, -1);