// Path: src/main/java/org/zephyrsoft/sdb2/util/DateTools.java
// public class DateTools {
// 	
// 	private static final String TIMESTAMP_PATTERN = "yyyy-MM-dd-HH-mm-ss";
// 	private static final String DATE_TIME_PATTERN = "yyyy-MM-dd HH:mm";
// 	private static final String DATE_PATTERN = "yyyy-MM-dd";
// 	private static final String YEAR_MONTH_PATTERN = "yyyy-MM";
// 	private static final DateTimeFormatter TIMESTAMP_FORMATTER = DateTimeFormatter.ofPattern(TIMESTAMP_PATTERN);
// 	private static final DateTimeFormatter DATE_TIME_FORMATTER = DateTimeFormatter.ofPattern(DATE_TIME_PATTERN);
// 	private static final DateTimeFormatter DATE_FORMATTER = DateTimeFormatter.ofPattern(DATE_PATTERN);
// 	private static final DateTimeFormatter YEAR_MONTH_FORMATTER = DateTimeFormatter.ofPattern(YEAR_MONTH_PATTERN);
// 	
// 	public static LocalDateTime parseDateTime(String toParse) {
// 		if (toParse != null && toParse.length() > 0) {
// 			return ZonedDateTime.parse(toParse).withZoneSameInstant(ZoneId.systemDefault()).toLocalDateTime();
// 		} else {
// 			return null;
// 		}
// 	}
// 	
// 	/**
// 	 * checks if the first parameter is before <b>the second plus 15 minutes</b>
// 	 */
// 	public static boolean isMax15MinutesLater(LocalDateTime one, LocalDateTime two) {
// 		return one.isBefore(two.plusMinutes(15));
// 	}
// 	
// 	public static String formatDateTime(LocalDateTime latestReleaseTimestamp) {
// 		return latestReleaseTimestamp.format(DATE_TIME_FORMATTER);
// 	}
// 	
// 	public static String formatDate(LocalDate date) {
// 		return date.format(DATE_FORMATTER);
// 	}
// 	
// 	public static LocalDate parseDate(String dateString) {
// 		return LocalDate.parse(dateString, DATE_FORMATTER);
// 	}
// 	
// 	public static String timestamp() {
// 		return LocalDateTime.now().format(TIMESTAMP_FORMATTER);
// 	}
// 	
// 	public static String formatYearMonth(LocalDate date) {
// 		return date.format(YEAR_MONTH_FORMATTER);
// 	}
// 	
// 	public static LocalDate now() {
// 		return LocalDate.now();
// 	}
// }


import java.io.File;
import org.apache.commons.lang3.StringUtils;
import org.zephyrsoft.sdb2.util.DateTools;
		} else {
			return fileName;
		}
	}
	
	public static String getDefaultDBFileName() {
		return getDBDir() + File.separator + DB_FILE_STRING;
	}
	
	public static String getDefaultDBPropertiesFileName() {
		return getDBDir() + File.separator + DB_PROPERTIES_FILE_STRING;
	}
	
	public static String getSettingsFileName() {
		return getSettingsDir() + File.separator + SETTINGS_FILE_STRING;
	}
	
	public static String getSettingsFallbackFileName() {
		return getSettingsDir() + File.separator + SETTINGS_FALLBACK_FILE_STRING;
	}
	
	public static String getStatisticsFileName() {
		return getStatisticsDir() + File.separator + STATISTICS_FILE_STRING;
	}
	
	private static String getDBDir() {
		return getDir(DB_SUBDIR_STRING);
	}
	
	private static String getSongsDir() {
// Path: src/main/java/org/zephyrsoft/sdb2/util/DateTools.java
// public class DateTools {
// 	
// 	private static final String TIMESTAMP_PATTERN = "yyyy-MM-dd-HH-mm-ss";
// 	private static final String DATE_TIME_PATTERN = "yyyy-MM-dd HH:mm";
// 	private static final String DATE_PATTERN = "yyyy-MM-dd";
// 	private static final String YEAR_MONTH_PATTERN = "yyyy-MM";
// 	private static final DateTimeFormatter TIMESTAMP_FORMATTER = DateTimeFormatter.ofPattern(TIMESTAMP_PATTERN);
// 	private static final DateTimeFormatter DATE_TIME_FORMATTER = DateTimeFormatter.ofPattern(DATE_TIME_PATTERN);
// 	private static final DateTimeFormatter DATE_FORMATTER = DateTimeFormatter.ofPattern(DATE_PATTERN);
// 	private static final DateTimeFormatter YEAR_MONTH_FORMATTER = DateTimeFormatter.ofPattern(YEAR_MONTH_PATTERN);
// 	
// 	public static LocalDateTime parseDateTime(String toParse) {
// 		if (toParse != null && toParse.length() > 0) {
// 			return ZonedDateTime.parse(toParse).withZoneSameInstant(ZoneId.systemDefault()).toLocalDateTime();
// 		} else {
// 			return null;
// 		}
// 	}
// 	
// 	/**
// 	 * checks if the first parameter is before <b>the second plus 15 minutes</b>
// 	 */
// 	public static boolean isMax15MinutesLater(LocalDateTime one, LocalDateTime two) {
// 		return one.isBefore(two.plusMinutes(15));
// 	}
// 	
// 	public static String formatDateTime(LocalDateTime latestReleaseTimestamp) {
// 		return latestReleaseTimestamp.format(DATE_TIME_FORMATTER);
// 	}
// 	
// 	public static String formatDate(LocalDate date) {
// 		return date.format(DATE_FORMATTER);
// 	}
// 	
// 	public static LocalDate parseDate(String dateString) {
// 		return LocalDate.parse(dateString, DATE_FORMATTER);
// 	}
// 	
// 	public static String timestamp() {
// 		return LocalDateTime.now().format(TIMESTAMP_FORMATTER);
// 	}
// 	
// 	public static String formatYearMonth(LocalDate date) {
// 		return date.format(YEAR_MONTH_FORMATTER);
// 	}
// 	
// 	public static LocalDate now() {
// 		return LocalDate.now();
// 	}
// }


// Path: src/main/java/org/zephyrsoft/sdb2/FileAndDirectoryLocations.java
import java.io.File;
import org.apache.commons.lang3.StringUtils;
import org.zephyrsoft.sdb2.util.DateTools;

		} else {
			return fileName;
		}
	}
	
	public static String getDefaultDBFileName() {
		return getDBDir() + File.separator + DB_FILE_STRING;
	}
	
	public static String getDefaultDBPropertiesFileName() {
		return getDBDir() + File.separator + DB_PROPERTIES_FILE_STRING;
	}
	
	public static String getSettingsFileName() {
		return getSettingsDir() + File.separator + SETTINGS_FILE_STRING;
	}
	
	public static String getSettingsFallbackFileName() {
		return getSettingsDir() + File.separator + SETTINGS_FALLBACK_FILE_STRING;
	}
	
	public static String getStatisticsFileName() {
		return getStatisticsDir() + File.separator + STATISTICS_FILE_STRING;
	}
	
	private static String getDBDir() {
		return getDir(DB_SUBDIR_STRING);
	}
	
	private static String getSongsDir() {
		return getDir(SONGS_SUBDIR_STRING);