Package | Description |
---|---|
cn.hutool.core.date |
日期封装,日期的核心为DateTime类,DateUtil提供日期操作的入口
|
Modifier and Type | Method and Description |
---|---|
static DateModifier.ModifyType |
DateModifier.ModifyType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DateModifier.ModifyType[] |
DateModifier.ModifyType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static Calendar |
DateModifier.modify(Calendar calendar,
int dateField,
DateModifier.ModifyType modifyType)
修改日期
|
static Calendar |
DateModifier.modify(Calendar calendar,
int dateField,
DateModifier.ModifyType modifyType,
boolean truncateMillisecond)
修改日期,取起始值或者结束值
可选是否归零毫秒。 |
Copyright © 2024. All rights reserved.