com.github.fartherp.framework.common.util.DateUtil Maven / Gradle / Ivy
/*
* Copyright (c) 2017. CK. All rights reserved.
*/
package com.github.fartherp.framework.common.util;
import com.github.fartherp.framework.common.constant.Constant;
import org.apache.commons.lang.StringUtils;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
/**
* The date tools
* DatUtil
*
* @author CK
*/
public class DateUtil {
public static final String yyyyMMdd = "yyyyMMdd";
public static final String yyyy_MM_dd = "yyyy-MM-dd";
public static final String ddMMyy = "ddMMyy";
public static final String yyyyMM = "yyyyMM";
public static final String yyyy_MM_dd_HH_mm_ss = "yyyy-MM-dd HH:mm:ss";
public static final String yyMMddHHmmss = "yyMMddHHmmss";
public static final String yyyyMMddHH = "yyyyMMddHH";
public static final String yyyyMMddHHmmss = "yyyyMMddHHmmss";
public static final String HH_mm_ss = "HH:mm:ss";
public static final String HHmmss = "HHmmss";
public static final String HH_mm = "HH:mm";
private final static ThreadLocal
© 2015 - 2025 Weber Informatics LLC | Privacy Policy