Package de.galan.commons.time
Class Instants.InstantBuilder
java.lang.Object
de.galan.commons.time.Instants.InstantBuilder
- Enclosing class:
- Instants
Actual builder class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionat(int hour, int minute, int second) Splits a time in the form hh:MM:ssatNoon()before(int amount, Instants.DatetimeUnit unit) in(int amount, Instants.DatetimeUnit unit) next(Instants.DatetimeUnit unit) next(Instants.WeekdayUnit unit) previous(Instants.WeekdayUnit unit) longlongtoDate()longtoLong()toString()Returns same as toStringLocal()protected StringReturns the time in local timezone and formattoStringLocal(String format) toStringUtc(String format) Deprecated, for removal: This API element is subject to removal in a future version.toZdt()Returns the instant as ZonedDateTime with UTC as ZoneIdTruncates the time using the defined timezonewith(TemporalAdjuster adjuster)
-
Constructor Details
-
InstantBuilder
-
-
Method Details
-
zone
-
with
-
in
-
before
-
next
-
previous
-
truncate
Truncates the time using the defined timezone -
next
-
previous
-
at
-
at
Splits a time in the form hh:MM:ss -
atMidnight
-
atNoon
-
till
-
till
-
toString
Returns same as toStringLocal() -
toStringLocal
Returns the time in local timezone and format -
toStringLocalMillis
-
toStringLocalNanos
-
toStringLocal
-
toStringUtcMillis
-
toStringUtcNano
Deprecated, for removal: This API element is subject to removal in a future version.UsetoStringUtcNano6()instead.- Returns:
-
toStringUtcNano6
-
toStringUtcNano9
-
toStringUtc
-
toStringUtc
-
toString
-
toLong
public long toLong() -
toInstant
-
toDate
-
toZdt
Returns the instant as ZonedDateTime with UTC as ZoneId -
toZdt
-