-
public final class TemporalAmountExtensions
-
-
Field Summary
Fields Modifier and Type Field Description private final static LocalDateTimeagoprivate final static LocalDateagoprivate final static LocalDateTimelaterprivate final static LocalDatelater
-
Method Summary
Modifier and Type Method Description final LocalDateTimegetAgo()final LocalDategetAgo()final LocalDateTimegetLater()final LocalDategetLater()final static LocalDateTimebefore(TemporalAmount $self, LocalDateTime other)得到距指定本地日期时间当前时长之前的本地日期时间。 final static LocalDatebefore(TemporalAmount $self, LocalDate other)得到距指定本地日期当前时长之前的本地日期。 final static Instantbefore(TemporalAmount $self, Instant other)得到距指定瞬间当前时长之前的本地日期。 final static ZonedDateTimebefore(TemporalAmount $self, ZonedDateTime other)得到距指定时区日期时间当前时长之前的本地日期。 final static LocalDateTimeafter(TemporalAmount $self, LocalDateTime other)得到距指定本地日期时间当前时长之后的本地日期时间。 final static LocalDateafter(TemporalAmount $self, LocalDate other)得到距指定本地日期当前时长之后的本地日期。 final static Instantafter(TemporalAmount $self, Instant other)得到距指定瞬间当前时长之后的本地日期。 final static ZonedDateTimeafter(TemporalAmount $self, ZonedDateTime other)得到距指定时区日期时间当前时长之后的本地日期。 -
-
Method Detail
-
getAgo
final LocalDateTime getAgo()
-
getLater
final LocalDateTime getLater()
-
before
final static LocalDateTime before(TemporalAmount $self, LocalDateTime other)
得到距指定本地日期时间当前时长之前的本地日期时间。
-
before
final static LocalDate before(TemporalAmount $self, LocalDate other)
得到距指定本地日期当前时长之前的本地日期。
-
before
final static Instant before(TemporalAmount $self, Instant other)
得到距指定瞬间当前时长之前的本地日期。
-
before
final static ZonedDateTime before(TemporalAmount $self, ZonedDateTime other)
得到距指定时区日期时间当前时长之前的本地日期。
-
after
final static LocalDateTime after(TemporalAmount $self, LocalDateTime other)
得到距指定本地日期时间当前时长之后的本地日期时间。
-
after
final static LocalDate after(TemporalAmount $self, LocalDate other)
得到距指定本地日期当前时长之后的本地日期。
-
after
final static Instant after(TemporalAmount $self, Instant other)
得到距指定瞬间当前时长之后的本地日期。
-
after
final static ZonedDateTime after(TemporalAmount $self, ZonedDateTime other)
得到距指定时区日期时间当前时长之后的本地日期。
-
-
-
-