| Package | Description |
|---|---|
| org.aoju.bus.core.date | |
| org.aoju.bus.core.lang | |
| org.aoju.bus.core.toolkit |
| 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.of(int calendarWeekIntValue)
将
Calendar星期相关值转换为Week枚举对象 |
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.
|
| Modifier and Type | Method and Description |
|---|---|
static Fields.Week |
DateKit.dayOfWeeks(Date date)
获得指定日期是星期几
|
static Fields.Week |
DateKit.thisDayOfWeekEnum() |
Copyright © 2020. All rights reserved.