Companion

object Companion

Functions

Link copied to clipboard

Given two LocalDate objects, calculate the difference between them and return a new ChronoUnit, pre-populated with that difference.

Given two LocalDateTime objects, calculate the difference between them and return a new ChronoUnit, pre-populated with that difference.

Given two LocalTime objects, calculate the difference between them and return a new ChronoUnit, pre-populated with that difference.

Link copied to clipboard
fun of(duration: Duration): ChronoContainer

Create a ChronoUnit and populate it with the values contained in the passed Duration object.

fun of(period: Period): ChronoContainer

Create a ChronoUnit and populate it with the values contained in the passed Period object.

fun of(duration: Duration, period: Period): ChronoContainer

Create a ChronoUnit and populate it with the values contained in the passed Duration and Period objects.