mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -1868,6 +1868,16 @@ public class DateUtil {
|
||||
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}对象
|
||||
*
|
||||
|
Reference in New Issue
Block a user