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 newInstant
that 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 newInstant
that 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 newInstant
that 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 newInstant
that 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 newInstant
that represents this instant minus the given amount of beeps.Instant.minusDays
(int daysToSubtract) Returns a newInstant
that 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 newInstant
that represents this instant minus the given amount of milliseconds.Instant.minusProportionOfDay
(org.apache.commons.numbers.fraction.BigFraction proportionToSubtract) Instant.minusSeconds
(long secondsToSubtract) Returns a newInstant
that represents this instant minus the given amount of seconds.Instant.minusYears
(int yearsToSubtract) Returns a newInstant
that 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 Instant
Instant.now()
Returns the currentInstant
.static Instant
Instant.of
(int year, int day, int beeps) Creates a newInstant
that represents the millisecond at the point in time when the given proportion of the given day has passed.static Instant
Instant.of
(int year, int day, org.apache.commons.numbers.fraction.BigFraction proportionOfDay) Creates a newInstant
that represents the millisecond at the point in time when the given proportion of the given day has passed.static Instant
Instant.of
(long epochMilliseconds) Creates a newInstant
representing the given number of milliseconds since the start of the Lukashian Calendar.static Instant
Creates a newInstant
that represents the millisecond at the point in time when the given proportion of the given day has passed.static Instant
Creates a newInstant
that represents the millisecond at the point in time when the given proportion of the given day has passed.static Instant
Creates a newInstant
that represents the millisecond at the point in time when the given proportion of the given day has passed.static Instant
Creates a newInstant
that represents the millisecond at the point in time when the given proportion of the given day has passed.static Instant
Instant.ofJavaInstant
(Instant javaInstant) static Instant
Instant.ofUnixEpochMilliseconds
(long unixEpochMilliseconds) Creates a newInstant
representing the amount of milliseconds since the UNIX Epoch.Instant.plusBeeps
(int beepsToAdd) Returns a newInstant
that represents this instant plus the given amount of beeps.Instant.plusDays
(int daysToAdd) Returns a newInstant
that 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 newInstant
that represents this instant plus the given amount of milliseconds.Instant.plusProportionOfDay
(org.apache.commons.numbers.fraction.BigFraction proportionToAdd) Instant.plusSeconds
(long secondsToAdd) Returns a newInstant
that represents this instant plus the given amount of seconds.Instant.plusYears
(int yearsToAdd) Returns a newInstant
that 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 TypeMethodDescriptionint
boolean
Returns whether the given non-nullInstant
, is inside this day.boolean
Returns whether the given non-nullInstant
, is inside this year.boolean
Day.containsNot
(Instant instant) Returns whether the given non-nullInstant
, is not inside this day.boolean
Year.containsNot
(Instant instant) Returns whether the given non-nullInstant
, is not inside this year.int
Instant.differenceInBeepsWith
(Instant other) Returns the amount of beeps between this instant and the given non-nullInstant
, directionally.long
Instant.differenceWith
(Instant other) Returns the amount of milliseconds between this instant and the given non-nullInstant
, directionally.static String
Formats the givenInstant
usingFormatter.format(Day)
andFormatter.format(BigFraction)
, using a space to separate the two.static String
Formatter.format
(Instant instant, Formatter.DayFormat dayFormat, String daySeparator, Function<org.apache.commons.numbers.fraction.BigFraction, String> formatter) Formats the givenInstant
usingFormatter.format(Day, DayFormat, String)
andFormatter.format(BigFraction, Function)
, using a space to separate the two.static String
Formatter.format
(Instant instant, Formatter.DayFormat dayFormat, Function<org.apache.commons.numbers.fraction.BigFraction, String> formatter) Formats the givenInstant
usingFormatter.format(Day, DayFormat)
andFormatter.format(BigFraction, Function)
, using a space to separate the two.boolean
Returns whether this instant is after the given non-nullInstant
.boolean
Returns whether this instant is before the given non-nullInstant
.boolean
Instant.isSameOrAfter
(Instant other) Returns whether this instant is the same or after the given non-nullInstant
.boolean
Instant.isSameOrBefore
(Instant other) Returns whether this instant is the same or before the given non-nullInstant
.