Uses of Class
java.time.Period
-
Packages that use Period 软件包 描述 java.time 日期,时间,瞬间和持续时间的主要API。java.time.chrono 除默认ISO之外的日历系统的通用API。java.time.format 提供打印和解析日期和时间的类。 -
-
Uses of Period in java.time
Fields in java.time declared as Period Modifier and Type Field 描述 static PeriodPeriod. ZERO一个常数为零。Methods in java.time that return Period Modifier and Type 方法 描述 static PeriodPeriod. between(LocalDate startDateInclusive, LocalDate endDateExclusive)获得一个Period包括两个日期之间的年数,月份和日期。static PeriodPeriod. from(TemporalAmount amount)从时间量获取Period的实例。PeriodPeriod. minus(TemporalAmount amountToSubtract)返回此期间的副本,并减去指定的时间段。PeriodPeriod. minusDays(long daysToSubtract)返回此期间的副本,并减去指定的天数。PeriodPeriod. minusMonths(long monthsToSubtract)返回此期间的副本,减去指定的月份。PeriodPeriod. minusYears(long yearsToSubtract)返回此期间的副本,并减去指定的年数。PeriodPeriod. multipliedBy(int scalar)返回一个新的实例,该时间段中的每个元素乘以指定的标量。PeriodPeriod. negated()返回一个新的实例,每个金额在此期间被否定。PeriodPeriod. normalized()返回此期间的副本,其中标准化了几年和几个月。static PeriodPeriod. of(int years, int months, int days)获得一个Period代表几年,几个月和几天。static PeriodPeriod. ofDays(int days)获得Period代表天数。static PeriodPeriod. ofMonths(int months)获得代表数月的Period。static PeriodPeriod. ofWeeks(int weeks)获得代表数周的Period。static PeriodPeriod. ofYears(int years)获得代表多年的Period。static PeriodPeriod. parse(CharSequence text)从Period的文本字符串获取PnYnMnD。PeriodPeriod. plus(TemporalAmount amountToAdd)返回指定期间添加的此期间的副本。PeriodPeriod. plusDays(long daysToAdd)返回添加指定日期的此期间的副本。PeriodPeriod. plusMonths(long monthsToAdd)返回添加指定月份的此期间的副本。PeriodPeriod. plusYears(long yearsToAdd)返回添加指定年份的此期间的副本。PeriodLocalDate. until(ChronoLocalDate endDateExclusive)将此日期与另一个日期之间的期间计算为Period。PeriodPeriod. withDays(int days)以指定的天数返回此期间的副本。PeriodPeriod. withMonths(int months)以指定的月数返回此期间的副本。PeriodPeriod. withYears(int years)以指定的年数返回此期间的副本。Methods in java.time with parameters of type Period Modifier and Type 方法 描述 Stream<LocalDate>LocalDate. datesUntil(LocalDate endExclusive, Period step)通过给定的增量步骤返回日期的顺序排序流。 -
Uses of Period in java.time.chrono
Methods in java.time.chrono that return Period Modifier and Type 方法 描述 PeriodIsoChronology. period(int years, int months, int days)根据几年,几个月和几天的时间表获得一段时间。 -
Uses of Period in java.time.format
Methods in java.time.format that return types with arguments of type Period Modifier and Type 方法 描述 static TemporalQuery<Period>DateTimeFormatter. parsedExcessDays()一个查询,可以访问已解析的多余天数。
-