Code example for Timestamp

Methods: getDate, setDate

0
				// if (C_SCHEDULE_HOUR == c.get(Calendar.HOUR_OF_DAY)) {	//¶¨Ê±·¢Ë͹¦ÄÜ 
				isRunning = true;
				log.debug("¿ªÊ¼Ö´ÐÐÖ¸¶¨ÈÎÎñ£ºInformationDeleteService");
				 
				List<KeyValueWithOperator> condList = new ArrayList<KeyValueWithOperator>();
				Timestamp beginTime = new Timestamp(System.currentTimeMillis());
				 
				//ɾ³ý14ÌìÒÔÇ°µÄËùÓÐÏûÏ¢ 
				beginTime.setDate(beginTime.getDate() - MaxDateOfDelInformation);
				condList.add(new KeyValueWithOperator("createDate", beginTime, "<"));
				InformationManager.deleteInformation(condList);
				 
				//ɾ³ý7ÌìÒÔÇ°µÄÒÑÌáÐѵÄÏûÏ¢ 
				condList.clear();
				beginTime.setDate(beginTime.getDate() + (MaxDateOfDelInformation - MaxDateOfInformation));
				condList.add(new KeyValueWithOperator("createDate", beginTime, "<"));
				condList.add(new KeyValueWithOperator("status", 1, "="));
				InformationManager.deleteInformation(condList);
				 
				log.debug("½áÊøÖ´ÐÐÖ¸¶¨ÈÎÎñ£ºInformationDeleteService");
			} catch (Exception e) {