Code example for Date

Methods: getHours, getMinutes, getSeconds

0
	 * Gets the default ARO trace folder name in the HH:MM:SS:DD:MM:YY format. 
	 *  
	 * @return The default ARO trace folder name. 
	 */ 
	public String getDefaultTraceFolderName() {
		final Date systemDate = new Date();
		final Calendar now = Calendar.getInstance();
		final int currenthours = systemDate.getHours();
		final int currentminutes = systemDate.getMinutes();
		final int currentseconds = systemDate.getSeconds();
		final int currentdate = now.get(Calendar.DATE); // java calendar
		int currentmonth = now.get(Calendar.MONTH); // As Jan is defined as 0 in
		currentmonth = currentmonth + 1;
		if (currentmonth >= 13) // As Jan is defined as 0 in java calendar
			currentmonth = 1;
		String currentMonth = Integer.toString(currentmonth);
		String currentDate = Integer.toString(currentdate);
		String currentHours = Integer.toString(currenthours);
		String currentMinutes = Integer.toString(currentminutes);
		String currentSeconds = Integer.toString(currentseconds - 1);