Package-level declarations

Functions

Link copied to clipboard
fun LocalDateTime.atEndOfDay(): LocalDateTime
Link copied to clipboard
fun LocalDateTime.atStartOfDay(): LocalDateTime
Link copied to clipboard
fun LocalDateTime.compareDay(localDateTimeB: LocalDateTime, timeZone: TimeZone = TimeZone.currentSystemDefault()): Int
Link copied to clipboard
fun LocalDateTime.compareMonth(localDateTimeB: LocalDateTime): Int
Link copied to clipboard
fun LocalDateTime.compareTime(localDateTimeB: LocalDateTime): Int
Link copied to clipboard
fun LocalDateTime.compareYear(localDateTimeB: LocalDateTime): Int
Link copied to clipboard
fun LocalDateTime.getDayDifference(localDateTimeB: LocalDateTime, timeZone: TimeZone = TimeZone.currentSystemDefault()): Int
Link copied to clipboard
fun LocalDateTime.getDaysInMonth(): Int
Link copied to clipboard
fun LocalDateTime.getDurationDifference(localDateTimeB: LocalDateTime, timeZone: TimeZone = TimeZone.currentSystemDefault()): Duration
Link copied to clipboard
fun LocalDateTime.getHourDifference(localDateTimeB: LocalDateTime, timeZone: TimeZone = TimeZone.currentSystemDefault()): Long
Link copied to clipboard
fun LocalDateTime.getLast(dayOfWeek: DayOfWeek, countingInThisDay: Boolean = false, timeZone: TimeZone = TimeZone.currentSystemDefault()): LocalDateTime
Link copied to clipboard
fun LocalDateTime.getMinuteDifference(localDateTimeB: LocalDateTime, timeZone: TimeZone = TimeZone.currentSystemDefault()): Long
Link copied to clipboard
fun LocalDateTime.getMonthBaseZero(): Int
Link copied to clipboard
fun LocalDateTime.getMonthDifference(localDateTimeB: LocalDateTime, timeZone: TimeZone = TimeZone.currentSystemDefault()): Int
Link copied to clipboard
fun LocalDateTime.getNext(dayOfWeek: DayOfWeek, countingInThisDay: Boolean = false, timeZone: TimeZone = TimeZone.currentSystemDefault()): LocalDateTime
Link copied to clipboard
fun LocalDateTime.getPeriodDifference(localDateTimeB: LocalDateTime, timeZone: TimeZone = TimeZone.currentSystemDefault()): DateTimePeriod
Link copied to clipboard
fun LocalDateTime.getSecondDifference(localDateTimeB: LocalDateTime, timeZone: TimeZone = TimeZone.currentSystemDefault()): Long
Link copied to clipboard
fun LocalDateTime.getYearDifference(localDateTimeB: LocalDateTime, timeZone: TimeZone = TimeZone.currentSystemDefault()): Int
Link copied to clipboard
fun LocalDateTime.isAfterDay(localDateTimeB: LocalDateTime, timeZone: TimeZone = TimeZone.currentSystemDefault()): Boolean
Link copied to clipboard
fun LocalDateTime.isAfterEqualDay(localDateTimeB: LocalDateTime, timeZone: TimeZone = TimeZone.currentSystemDefault()): Boolean
Link copied to clipboard
fun LocalDateTime.isAfterEqualMonth(localDateTimeB: LocalDateTime): Boolean
Link copied to clipboard
fun LocalDateTime.isAfterEqualTime(localDateTimeB: LocalDateTime): Boolean
Link copied to clipboard
fun LocalDateTime.isAfterEqualYear(localDateTimeB: LocalDateTime): Boolean
Link copied to clipboard
fun LocalDateTime.isAfterMonth(localDateTimeB: LocalDateTime): Boolean
Link copied to clipboard
fun LocalDateTime.isAfterTime(localDateTimeB: LocalDateTime): Boolean
Link copied to clipboard
fun LocalDateTime.isAfterYear(localDateTimeB: LocalDateTime): Boolean
Link copied to clipboard
fun LocalDateTime.isAtEndOfDay(): Boolean
Link copied to clipboard
fun LocalDateTime.isAtStartOfDay(): Boolean
Link copied to clipboard
fun LocalDateTime.isBeforeDay(localDateTimeB: LocalDateTime, timeZone: TimeZone = TimeZone.currentSystemDefault()): Boolean
Link copied to clipboard
fun LocalDateTime.isBeforeEqualDay(localDateTimeB: LocalDateTime, timeZone: TimeZone = TimeZone.currentSystemDefault()): Boolean
Link copied to clipboard
fun LocalDateTime.isBeforeEqualMonth(localDateTimeB: LocalDateTime): Boolean
Link copied to clipboard
fun LocalDateTime.isBeforeEqualTime(localDateTimeB: LocalDateTime): Boolean
Link copied to clipboard
fun LocalDateTime.isBeforeEqualYear(localDateTimeB: LocalDateTime): Boolean
Link copied to clipboard
fun LocalDateTime.isBeforeMonth(localDateTimeB: LocalDateTime): Boolean
Link copied to clipboard
fun LocalDateTime.isBeforeTime(localDateTimeB: LocalDateTime): Boolean
Link copied to clipboard
fun LocalDateTime.isBeforeYear(localDateTimeB: LocalDateTime): Boolean
Link copied to clipboard
fun LocalDateTime.isEqualDay(localDateTimeB: LocalDateTime, timeZone: TimeZone = TimeZone.currentSystemDefault()): Boolean
Link copied to clipboard
fun LocalDateTime.isEqualMonth(localDateTimeB: LocalDateTime): Boolean
Link copied to clipboard
fun LocalDateTime.isEqualTime(localDateTimeB: LocalDateTime): Boolean
Link copied to clipboard
fun LocalDateTime.isEqualYear(localDateTimeB: LocalDateTime): Boolean
Link copied to clipboard
fun LocalDateTime.isInLeapYear(): Boolean
Link copied to clipboard
fun LocalDateTime.minusDays(days: Int, timeZone: TimeZone = TimeZone.currentSystemDefault()): LocalDateTime
Link copied to clipboard
fun LocalDateTime.minusHours(hours: Int, timeZone: TimeZone = TimeZone.currentSystemDefault()): LocalDateTime
Link copied to clipboard
fun LocalDateTime.minusMinutes(minutes: Int, timeZone: TimeZone = TimeZone.currentSystemDefault()): LocalDateTime
Link copied to clipboard
fun LocalDateTime.minusMonths(months: Int, timeZone: TimeZone = TimeZone.currentSystemDefault()): LocalDateTime
Link copied to clipboard
fun LocalDateTime.minusSeconds(seconds: Int, timeZone: TimeZone = TimeZone.currentSystemDefault()): LocalDateTime
Link copied to clipboard
fun LocalDateTime.minusYears(years: Int, timeZone: TimeZone = TimeZone.currentSystemDefault()): LocalDateTime
Link copied to clipboard
fun LocalDateTime.plusDays(days: Int, timeZone: TimeZone = TimeZone.currentSystemDefault()): LocalDateTime
Link copied to clipboard
fun LocalDateTime.plusHours(hours: Int, timeZone: TimeZone = TimeZone.currentSystemDefault()): LocalDateTime
Link copied to clipboard
fun LocalDateTime.plusMinutes(minutes: Int, timeZone: TimeZone = TimeZone.currentSystemDefault()): LocalDateTime
Link copied to clipboard
fun LocalDateTime.plusMonths(months: Int, timeZone: TimeZone = TimeZone.currentSystemDefault()): LocalDateTime
Link copied to clipboard
fun LocalDateTime.plusSeconds(seconds: Int, timeZone: TimeZone = TimeZone.currentSystemDefault()): LocalDateTime
Link copied to clipboard
fun LocalDateTime.plusYears(years: Int, timeZone: TimeZone = TimeZone.currentSystemDefault()): LocalDateTime
Link copied to clipboard
fun LocalDateTime.print(format: String): String
Link copied to clipboard
fun LocalDateTime.toLocalDate(): LocalDate
Link copied to clipboard
fun String.toLocalDateTime(format: String? = null): LocalDateTime?

Works off of String representations of datetime and tries parsing as LocalDateTime & return null if it fails.

Link copied to clipboard
fun LocalDateTime.toLocalTime(): LocalTime
Link copied to clipboard
fun LocalDateTime.withLocalTime(localTime: LocalTime): LocalDateTime