TimeApiExtensions

Properties

Link copied to clipboard
const val DAYS_PER_WEEK: Int = 7
Link copied to clipboard
const val SECONDS_PER_DAY: Int
Link copied to clipboard
Link copied to clipboard
const val SECONDS_PER_MINUTE: Int = 60
Link copied to clipboard

Functions

Link copied to clipboard

Returns the absolute (positive) temporal amount.

Link copied to clipboard
Link copied to clipboard

Gets the LocalDate part of this Temporal instance.

Link copied to clipboard

Converts a TemporalAmount to an RFC5545 duration value, which only uses weeks, days, hours, minutes and seconds. Because years and months can't be used, they're converted to weeks/days using the duration's position in the calendar.