@@ -1,6 +1,7 @@
|
||||
package com.imyeyu.utils;
|
||||
|
||||
import com.imyeyu.java.TimiJava;
|
||||
import lombok.Getter;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.time.Instant;
|
||||
@@ -386,77 +387,28 @@ public class Time {
|
||||
* @author 夜雨
|
||||
* @version 2022-10-12 14:46
|
||||
*/
|
||||
@Getter
|
||||
public static class Between {
|
||||
|
||||
/** 年 */
|
||||
int year;
|
||||
|
||||
/** 月 */
|
||||
int month;
|
||||
|
||||
/** 天 */
|
||||
int day;
|
||||
|
||||
/** 小时 */
|
||||
int hour;
|
||||
|
||||
/** 分钟 */
|
||||
int minute;
|
||||
|
||||
/** 秒 */
|
||||
int second;
|
||||
|
||||
/** 毫秒 */
|
||||
int millis;
|
||||
|
||||
/**
|
||||
* 获取年数
|
||||
*
|
||||
* @return 年数
|
||||
*/
|
||||
public int getYear() {
|
||||
return year;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取月数
|
||||
*
|
||||
* @return 月数
|
||||
*/
|
||||
public int getMonth() {
|
||||
return month;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取天数
|
||||
*
|
||||
* @return 天数
|
||||
*/
|
||||
public int getDay() {
|
||||
return day;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取小时
|
||||
*
|
||||
* @return 小时
|
||||
*/
|
||||
public int getHour() {
|
||||
return hour;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取分钟
|
||||
*
|
||||
* @return 分钟
|
||||
*/
|
||||
public int getMinute() {
|
||||
return minute;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取秒
|
||||
*
|
||||
* @return 秒
|
||||
*/
|
||||
public int getSecond() {
|
||||
return second;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取毫秒
|
||||
*
|
||||
* @return 毫秒
|
||||
*/
|
||||
public int getMillis() {
|
||||
return millis;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user