Package-level declarations
Functions
Link copied to clipboard
Returns difference between this date and that date in TimeDuration.
Returns difference between this date and the otherTime in TimeDuration.
Link copied to clipboard
Link copied to clipboard
inline fun Date?.isWithinDurationFromNow(duration: TimeDuration, now: () -> Long = { System.currentTimeMillis() }): Boolean
Returns true if the date is within the specified duration from now.
Link copied to clipboard
Truncates the date to the current time if it's in the future.