All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.panhongan.utils.time.DateUtils Maven / Gradle / Ivy

package com.github.panhongan.utils.time;

import org.joda.time.DateTime;

/**
 * lalalu plus
 */
public class DateUtils {

	public static void checkFormat(DateTime dateTime, String pattern) {
		if (dateTime.toString(pattern).length() != pattern.length()) {
			throw new RuntimeException("invalid datetime : " + dateTime.toString());
		}
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy