Uses of Class
org.lukashian.Instant
Packages that use Instant
-
Uses of Instant in org.lukashian
Methods in org.lukashian that return InstantModifier and TypeMethodDescriptionInstant.atNextDay()Returns a newInstantthat represents the passed proportion of this instant's day on the next day, for example, if this instant represents a point at one third of its day, then calling this method will return an instant that represents one third of the next day.Instant.atPreviousDay()Returns a newInstantthat represents the passed proportion of this instant's day on the previous day, for example, if this instant represents a point at one third of its day, then calling this method will return an instant that represents one third of the previous day.Day.atTime(int beeps) Returns a newInstantthat represents the instant that occurs after the given proportion of this day has passed.Day.atTime(org.apache.commons.numbers.fraction.BigFraction proportionOfDay) Returns a newInstantthat represents the instant that occurs after the given proportion of this day has passed.Day.firstInstant()Year.firstInstant()Day.lastInstant()Year.lastInstant()Instant.minusBeeps(int beepsToSubtract) Returns a newInstantthat represents this instant minus the given amount of beeps.Instant.minusDays(int daysToSubtract) Returns a newInstantthat represents the passed proportion of this instant's day on this instant's day minus the given amount of days, for example, if this instant represents a point at one third of its day, then calling this method will return an instant that represents one third of the resulting day.Instant.minusMilliseconds(long millisecondsToSubtract) Returns a newInstantthat represents this instant minus the given amount of milliseconds.Instant.minusProportionOfDay(org.apache.commons.numbers.fraction.BigFraction proportionToSubtract) Instant.minusSeconds(long secondsToSubtract) Returns a newInstantthat represents this instant minus the given amount of seconds.Instant.minusYears(int yearsToSubtract) Returns a newInstantthat represents the passed proportion of this instant's day on this instant's day minus the given amount of years, for example, if this instant represents a point at one third of its day, then calling this method will return an instant that represents one third of the resulting day.static InstantInstant.now()Returns the currentInstant.static InstantInstant.of(int year, int day, int beeps) Creates a newInstantthat represents the millisecond at the point in time when the given proportion of the given day has passed.static InstantInstant.of(int year, int day, org.apache.commons.numbers.fraction.BigFraction proportionOfDay) Creates a newInstantthat represents the millisecond at the point in time when the given proportion of the given day has passed.static InstantInstant.of(long epochMilliseconds) Creates a newInstantrepresenting the given number of milliseconds since the start of the Lukashian Calendar.static InstantCreates a newInstantthat represents the millisecond at the point in time when the given proportion of the given day has passed.static InstantCreates a newInstantthat represents the millisecond at the point in time when the given proportion of the given day has passed.static InstantCreates a newInstantthat represents the millisecond at the point in time when the given proportion of the given day has passed.static InstantCreates a newInstantthat represents the millisecond at the point in time when the given proportion of the given day has passed.static InstantInstant.ofJavaInstant(Instant javaInstant) static InstantInstant.ofUnixEpochMilliseconds(long unixEpochMilliseconds) Creates a newInstantrepresenting the amount of milliseconds since the UNIX Epoch.Instant.plusBeeps(int beepsToAdd) Returns a newInstantthat represents this instant plus the given amount of beeps.Instant.plusDays(int daysToAdd) Returns a newInstantthat represents the passed proportion of this instant's day on this instant's day plus the given amount of days, for example, if this instant represents a point at one third of its day, then calling this method will return an instant that represents one third of the resulting day.Instant.plusMilliseconds(long millisecondsToAdd) Returns a newInstantthat represents this instant plus the given amount of milliseconds.Instant.plusProportionOfDay(org.apache.commons.numbers.fraction.BigFraction proportionToAdd) Instant.plusSeconds(long secondsToAdd) Returns a newInstantthat represents this instant plus the given amount of seconds.Instant.plusYears(int yearsToAdd) Returns a newInstantthat represents the passed proportion of this instant's day on this instant's day plus the given amount of years, for example, if this instant represents a point at one third of its day, then calling this method will return an instant that represents one third of the resulting day.Methods in org.lukashian with parameters of type InstantModifier and TypeMethodDescriptionintbooleanReturns whether the given non-nullInstant, is inside this day.booleanReturns whether the given non-nullInstant, is inside this year.booleanDay.containsNot(Instant instant) Returns whether the given non-nullInstant, is not inside this day.booleanYear.containsNot(Instant instant) Returns whether the given non-nullInstant, is not inside this year.intInstant.differenceInBeepsWith(Instant other) Returns the amount of beeps between this instant and the given non-nullInstant, directionally.longInstant.differenceWith(Instant other) Returns the amount of milliseconds between this instant and the given non-nullInstant, directionally.static StringFormats the givenInstantusingFormatter.format(Day)andFormatter.format(BigFraction), using a space to separate the two.static StringFormatter.format(Instant instant, Formatter.DayFormat dayFormat, String daySeparator, Function<org.apache.commons.numbers.fraction.BigFraction, String> formatter) Formats the givenInstantusingFormatter.format(Day, DayFormat, String)andFormatter.format(BigFraction, Function), using a space to separate the two.static StringFormatter.format(Instant instant, Formatter.DayFormat dayFormat, Function<org.apache.commons.numbers.fraction.BigFraction, String> formatter) Formats the givenInstantusingFormatter.format(Day, DayFormat)andFormatter.format(BigFraction, Function), using a space to separate the two.booleanReturns whether this instant is after the given non-nullInstant.booleanReturns whether this instant is before the given non-nullInstant.booleanInstant.isSameOrAfter(Instant other) Returns whether this instant is the same or after the given non-nullInstant.booleanInstant.isSameOrBefore(Instant other) Returns whether this instant is the same or before the given non-nullInstant.