SupportTimeHelper

class SupportTimeHelper(currentTimeInstant: SupportTimeInstant, referenceTimeInstant: SupportTimeHelper.SupportTime)

Holder for constructing time units

Since

v1.2.0

Parameters

currentTimeInstant

time to convert using the given SupportDateTimeUnit

referenceTimeInstant

type of comparison between itself and the currentTimeInstant time

Constructors

Link copied to clipboard
constructor(currentTimeInstant: SupportTimeInstant, referenceTimeInstant: SupportTimeHelper.SupportTime)

Types

Link copied to clipboard
data class SupportTime(val instant: Int, val unit: SupportDateTimeUnit)

Functions

Link copied to clipboard

Checks if the time unix timestamp has a difference greater than or equal to the referenceTimeInstant which has a measurement unit of SupportDateTimeUnit