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

com.gitee.cliveyuan.tools.enums.DateTimeFormat Maven / Gradle / Ivy

There is a newer version: 4.0.6
Show newest version
package com.gitee.cliveyuan.tools.enums;

/**
 * 日期时间格式常量
 *
 * @author: clive
 * Created on 2018/07/23
 * @since: 1.0
 */
public enum DateTimeFormat {

    DATE_0("yyyyMMdd"),
    DATE_1("yyyy-MM-dd"),
    DATE_2("yyyy/MM/dd"),
    DATE_3("yyyy.MM.dd"),

    TIME_0("HHmmss"),
    TIME_1("HH:mm:ss"),
    TIME_2("HH:mm"),

    DATE_TIME_0("yyyyMMddHHmmss"),
    DATE_TIME_1("yyyy-MM-dd HH:mm:ss"),
    DATE_TIME_2("yyyy-MM-dd HH:mm"),
    DATE_TIME_3("yyyy/MM/dd HH:mm:SS"),
    DATE_TIME_4("yyyy/MM/dd HH:mm");

    DateTimeFormat(String format) {
        this.format = format;
    }

    private String format;

    public String getFormat() {
        return format;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy