implicit final class LocalDateTimeType extends AnyVal
Provides extension methods to java.time.LocalDateTime
- Alphabetic
- By Inheritance
- LocalDateTimeType
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new LocalDateTimeType(dateTime: LocalDateTime)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
def
+(amount: TemporalAmount): LocalDateTime
Gets date-time with specified amount added.
Gets date-time with specified amount added.
- amount
temporal amount
-
def
-(amount: TemporalAmount): LocalDateTime
Gets date-time with specified amount subtracted.
Gets date-time with specified amount subtracted.
- amount
temporal amount
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
atEndOfDay(implicit precision: TimePrecision): LocalDateTime
Gets date-time adjusted to end of day.
Gets date-time adjusted to end of day.
- precision
time precision
-
def
atEndOfHour(implicit precision: TimePrecision): LocalDateTime
Gets date-time adjusted to end of hour.
Gets date-time adjusted to end of hour.
- precision
time precision
-
def
atEndOfMicros(implicit precision: TimePrecision): LocalDateTime
Gets date-time adjusted to end of microsecond.
Gets date-time adjusted to end of microsecond.
- precision
time precision
-
def
atEndOfMillis(implicit precision: TimePrecision): LocalDateTime
Gets date-time adjusted to end of millisecond.
Gets date-time adjusted to end of millisecond.
- precision
time precision
-
def
atEndOfMinute(implicit precision: TimePrecision): LocalDateTime
Gets date-time adjusted to end of minute.
Gets date-time adjusted to end of minute.
- precision
time precision
-
def
atEndOfMonth(implicit precision: TimePrecision): LocalDateTime
Gets date-time adjusted to last day of month.
Gets date-time adjusted to last day of month.
- precision
time precision
-
def
atEndOfSecond(implicit precision: TimePrecision): LocalDateTime
Gets date-time adjusted to end of second.
Gets date-time adjusted to end of second.
- precision
time precision
-
def
atEndOfWeek(lastDay: DayOfWeek)(implicit precision: TimePrecision): LocalDateTime
Gets date-time adjusted to specified last day of week.
Gets date-time adjusted to specified last day of week.
- lastDay
last day of week
- precision
time precision
-
def
atEndOfWeek(implicit precision: TimePrecision): LocalDateTime
Gets date-time adjusted to last day of week.
Gets date-time adjusted to last day of week.
- Note
Saturday is last day of week.
-
def
atEndOfYear(implicit precision: TimePrecision): LocalDateTime
Gets date-time adjusted to last day of year.
Gets date-time adjusted to last day of year.
- precision
time precision
-
def
atStartOfDay: LocalDateTime
Gets date-time truncated to day.
-
def
atStartOfHour: LocalDateTime
Gets date-time truncated to hour.
-
def
atStartOfMicros: LocalDateTime
Gets date-time truncated to microsecond.
-
def
atStartOfMillis: LocalDateTime
Gets date-time truncated to millisecond.
-
def
atStartOfMinute: LocalDateTime
Gets date-time truncated to minute.
-
def
atStartOfMonth: LocalDateTime
Gets date-time adjusted to first day of month.
-
def
atStartOfSecond: LocalDateTime
Gets date-time truncated to second.
-
def
atStartOfWeek(firstDay: DayOfWeek): LocalDateTime
Gets date-time adjusted to specified first day of week.
Gets date-time adjusted to specified first day of week.
- firstDay
first day of week
-
def
atStartOfWeek: LocalDateTime
Gets date-time adjusted to first day of week.
Gets date-time adjusted to first day of week.
- Note
Sunday is first day of week.
-
def
atStartOfYear: LocalDateTime
Gets date-time adjusted to first day of year.
- val dateTime: LocalDateTime
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
iterateTo(end: LocalDateTime, step: TemporalAmount = Duration.ofSeconds(1)): Iterator[LocalDateTime]
Creates iterator to end date-time (inclusive).
Creates iterator to end date-time (inclusive).
- end
end date-time
- step
temporal amount by which to step
- Exceptions thrown
IllegalArgumentExceptionifstepis zero.
-
def
iterateUntil(end: LocalDateTime, step: TemporalAmount = Duration.ofSeconds(1)): Iterator[LocalDateTime]
Creates iterator to end date-time (exclusive).
Creates iterator to end date-time (exclusive).
- end
end date-time
- step
temporal amount by which to step
-
def
max(other: LocalDateTime): LocalDateTime
Compares to other date-time and returns the greater value.
Compares to other date-time and returns the greater value.
- other
other date-time
-
def
min(other: LocalDateTime): LocalDateTime
Compares to other date-time and returns the lesser value.
Compares to other date-time and returns the lesser value.
- other
other date-time
-
def
toString(): String
- Definition Classes
- Any
-
def
toYearMonth: YearMonth
Gets
YearMonthpart of date-time.