| Package | Description |
|---|---|
| org.aoju.bus.core.date |
日期封装,日期的核心为DateTime类
|
| org.aoju.bus.core.lang |
语言特性包,包括大量便捷的数据结构,例如验证器Validator,分布式ID生成器Snowflake等
|
| Modifier and Type | Method and Description |
|---|---|
static Calendar |
Almanac.ceiling(Calendar calendar,
int dateField,
Fields.Modify modify)
修改日期
|
static Calendar |
Almanac.ceiling(Calendar calendar,
int field,
Fields.Modify modify,
boolean truncateMillisecond)
修改日期,取起始值或者结束值可选是否归零毫秒。
在
Fields.Modify#TRUNCATE模式下,毫秒始终要归零,
但是在Fields.Modify#CEILING和Fields.Modify#ROUND模式下
有时候由于毫秒部分必须为0(如MySQL数据库中),因此在此加上选项 |
| Modifier and Type | Method and Description |
|---|---|
static Fields.Modify |
Fields.Modify.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Fields.Modify[] |
Fields.Modify.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Copyright © 2021. All rights reserved.