*/
public static String dateAsPath(Calendar cal, Boolean addHour) {
StringBuffer buf = new StringBuffer(14);
*/
public static String dateAsPath(Calendar cal, Boolean addHour) {
StringBuffer buf = new StringBuffer(14);
- buf.append('Y').append(cal.get(Calendar.YEAR));
+ buf.append('Y');
+ buf.append(cal.get(Calendar.YEAR));
int month = cal.get(Calendar.MONTH) + 1;
buf.append('M');
if (month < 10)
buf.append(0);
buf.append(month);
buf.append('/');
int month = cal.get(Calendar.MONTH) + 1;
buf.append('M');
if (month < 10)
buf.append(0);
buf.append(month);
buf.append('/');
int day = cal.get(Calendar.DAY_OF_MONTH);
int day = cal.get(Calendar.DAY_OF_MONTH);
if (day < 10)
buf.append(0);
if (day < 10)
buf.append(0);
- buf.append('D').append(day);
if (addHour) {
int hour = cal.get(Calendar.HOUR_OF_DAY);
buf.append('H');
if (addHour) {
int hour = cal.get(Calendar.HOUR_OF_DAY);
buf.append('H');