| Package | Description |
|---|---|
| org.aoju.bus.core.date |
日期封装,日期的核心为DateTime类
|
| org.aoju.bus.core.lang |
语言特性包,包括大量便捷的数据结构,例如验证器Validator,分布式ID生成器Snowflake等
|
| Modifier and Type | Method and Description |
|---|---|
Fields.Week |
DateTime.dayOfWeekEnum()
获得指定日期是星期几
|
Fields.Week |
DateTime.getFirstDayOfWeek()
获得一周的第一天,默认为周一
|
| Modifier and Type | Method and Description |
|---|---|
DateTime |
DateTime.setFirstDayOfWeek(Fields.Week firstDayOfWeek)
设置一周的第一天
JDK的Calendar中默认一周的第一天是周日,将此默认值设置为周一
设置一周的第一天主要影响
DateTime.weekOfMonth()和DateTime.weekOfYear() 两个方法 |
| Modifier and Type | Method and Description |
|---|---|
static Fields.Week |
Fields.Week.getByCode(int code)
根据code查询星期名称枚举
|
static Fields.Week |
Fields.Week.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Fields.Week[] |
Fields.Week.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Copyright © 2022. All rights reserved.