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 变量和类型 字段 描述 static PeriodPeriod. ZERO一个常数为零。Methods in java.time that return Period 变量和类型 方法 描述 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 变量和类型 方法 描述 Stream<LocalDate>LocalDate. datesUntil(LocalDate endExclusive, Period step)按给定的增量步骤返回顺序排序的日期流。 -
Uses of Period in java.time.chrono
Methods in java.time.chrono that return Period 变量和类型 方法 描述 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 变量和类型 方法 描述 static TemporalQuery<Period>DateTimeFormatter. parsedExcessDays()一个查询,提供对已解析的超出天数的访问权限。
-