mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
fix code
This commit is contained in:
parent
05e453b23c
commit
3125c23477
@ -1868,6 +1868,16 @@ public class DateUtil {
|
|||||||
return duration / 1_000_000_000.0;
|
return duration / 1_000_000_000.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 转换为Calendar对象
|
||||||
|
*
|
||||||
|
* @param date 日期对象
|
||||||
|
* @return Calendar对象
|
||||||
|
*/
|
||||||
|
public static Calendar toCalendar(final Date date) {
|
||||||
|
return CalendarUtil.calendar(date);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Date对象转换为{@link Instant}对象
|
* Date对象转换为{@link Instant}对象
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user