Uses of Class
org.lukashian.Day
Packages that use Day
-
Uses of Day in org.lukashian
Methods in org.lukashian that return DayModifier and TypeMethodDescriptionYear.atDay
(int day) Year.firstDay()
Instant.getDay()
Returns theDay
of this instant.Year.lastDay()
Day.minusDays
(int daysToSubtract) Returns a newDay
that represents this day minus the given amount of days.Day.minusYears
(int yearsToSubtract) Returns a newDay
that represents this day's number on this day's year minus the given amount of years, for example, if this day represents day number 10 of its year, then calling this method will return an day that represents day number 10 of the resulting year.Day.next()
Returns a newDay
that represents the day succeeding this day.static Day
Day.now()
Returns the currentDay
.static Day
Day.of
(int epochDay) Creates a newDay
representing the given epoch day, i.e. the number of the day since the start of the calendar, irrespective of the year that the day is in, e.g.static Day
Day.of
(int year, int day) Creates a newDay
representing the given day in the given year.static Day
Creates a newDay
representing the given day in the given year.Day.plusDays
(int daysToAdd) Returns a newDay
that represents this day plus the given amount of days.Day.plusYears
(int yearsToAdd) Returns a newDay
that represents this day's number on this day's year plus the given amount of years, for example, if this day represents day number 10 of its year, then calling this method will return an day that represents day number 10 of the resulting year.Day.previous()
Returns a newDay
that represents the day preceding this day.Methods in org.lukashian with parameters of type DayModifier and TypeMethodDescriptionint
boolean
Returns whether the given non-nullDay
, is part of this year.boolean
Year.containsNot
(Day day) Returns whether the given non-nullDay
, is not part of this year.int
Day.differenceWith
(Day other) Returns the amount of days between this day and the given non-nullDay
, directionally.static String
Formats the givenDay
withFormatter.DayFormat.YEAR_FIRST
and '-' as a separator.static String
Formatter.format
(Day day, Formatter.DayFormat format) Formats the givenDay
, according to the givenFormatter.DayFormat
, with '-' as a separator.static String
Formatter.format
(Day day, Formatter.DayFormat format, String separator) Formats the givenDay
according to the givenFormatter.DayFormat
, using the given separator between the day and the year.boolean
Returns whether this day is after the given non-nullDay
.boolean
Returns whether this day is before the given non-nullDay
.boolean
Returns whether this instant is in the given non-nullDay
.boolean
Returns whether this instant is not in the given non-nullDay
.boolean
Day.isSameOrAfter
(Day other) Returns whether this day is the same or after the given non-nullDay
.boolean
Day.isSameOrBefore
(Day other) Returns whether this day is the same or before the given non-nullDay
.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.