| 程序包 | 说明 |
|---|---|
| com.jn.langx.util |
This package contain all most utility classes for java coding
|
| com.jn.langx.util.jodatime |
Provides support for dates, times, time zones, durations, intervals, and
partials.
|
| com.jn.langx.util.jodatime.base |
Implementation package providing abstract and base time classes.
|
| com.jn.langx.util.jodatime.field |
| 限定符和类型 | 方法和说明 |
|---|---|
static Interval |
Calendars.getWeek(long millis,
Calendars.RecentIntervalType recentWeekType)
获取一个时间点所在那一周的起止时间
有的国家是从 周一到周日
有的国家是从 周日到周六
有的国家是从 周六到周五
星期一:Monday(Mon.)
|
| 限定符和类型 | 方法和说明 |
|---|---|
Interval |
Interval.gap(ReadableInterval interval)
Gets the gap between this interval and another interval.
|
Interval |
Interval.overlap(ReadableInterval interval)
Gets the overlap between this interval and another interval.
|
static Interval |
Interval.parse(String str)
Parses a
Interval from the specified string. |
Interval |
YearMonthDay.toInterval()
已过时。
Converts this object to an Interval representing the whole day
in the default time zone.
|
Interval |
YearMonth.toInterval()
Converts this object to an Interval representing the whole month.
|
Interval |
ReadableInterval.toInterval()
Get this interval as an immutable
Interval object. |
Interval |
LocalDate.toInterval()
Converts this object to an Interval representing the whole day
in the default time zone.
|
Interval |
Interval.toInterval()
Get this interval as an immutable
Interval object
by returning this. |
Interval |
DateMidnight.toInterval()
已过时。
Converts this object to an
Interval encompassing
the whole of this day. |
Interval |
YearMonthDay.toInterval(DateTimeZone zone)
已过时。
Converts this object to an Interval representing the whole day.
|
Interval |
YearMonth.toInterval(DateTimeZone zone)
Converts this object to an Interval representing the whole month.
|
Interval |
LocalDate.toInterval(DateTimeZone zone)
Converts this object to an Interval representing the whole day.
|
Interval |
Interval.withChronology(Chronology chronology)
Creates a new interval with the same start and end, but a different chronology.
|
Interval |
Interval.withDurationAfterStart(ReadableDuration duration)
Creates a new interval with the specified duration after the start instant.
|
Interval |
Interval.withDurationBeforeEnd(ReadableDuration duration)
Creates a new interval with the specified duration before the end instant.
|
Interval |
Interval.withEnd(ReadableInstant end)
Creates a new interval with the specified end instant.
|
Interval |
Interval.withEndMillis(long endInstant)
Creates a new interval with the specified start millisecond instant.
|
Interval |
Interval.withPeriodAfterStart(ReadablePeriod period)
Creates a new interval with the specified period after the start instant.
|
Interval |
Interval.withPeriodBeforeEnd(ReadablePeriod period)
Creates a new interval with the specified period before the end instant.
|
Interval |
Interval.withStart(ReadableInstant start)
Creates a new interval with the specified start instant.
|
Interval |
Interval.withStartMillis(long startInstant)
Creates a new interval with the specified start millisecond instant.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Interval |
AbstractInterval.toInterval()
Get this interval as an immutable
Interval object. |
Interval |
BaseDuration.toIntervalFrom(ReadableInstant startInstant)
Converts this duration to an Interval starting at the specified instant.
|
Interval |
BaseDuration.toIntervalTo(ReadableInstant endInstant)
Converts this duration to an Interval ending at the specified instant.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Interval |
AbstractReadableInstantFieldProperty.toInterval()
Returns the interval that represents the range of the minimum
and maximum values of this field.
|
Copyright © 2020. All rights reserved.