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

org.sagacity.sqltoy.model.TimeUnit Maven / Gradle / Ivy

There is a newer version: 5.6.31.jre8
Show newest version
package org.sagacity.sqltoy.model;

/**
 * @project sqltoy-orm
 * @description 时间单位,主要用于sql中filter中的时间加减计算的单位
 * @author zhongxuchen
 * @version v1.0,Date:2022-3-17
 */
public enum TimeUnit {
	// 毫秒
	MILLISECONDS("MILLISECONDS"),

	// 秒
	SECONDS("SECONDS"),

	// 分钟
	MINUTES("MINUTES"),

	HOURS("HOURS"),

	DAYS("DAYS"),

	MONTHS("MONTHS"),

	YEARS("YEARS");

	private final String timeUnit;

	private TimeUnit(String timeUnit) {
		this.timeUnit = timeUnit;
	}

	public String value() {
		return this.timeUnit;
	}

	@Override
	public String toString() {
		return this.timeUnit;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy