TimeInterval

data class TimeInterval


TimeInterval class defines a period from start to end

Summary

Public constructors

TimeInterval(start: Instant, end: Instant)

This function is deprecated. glance-wear-tiles is deprecated and will be removed

Public properties

Instant

This property is deprecated. glance-wear-tiles is deprecated and will be removed

Instant

This property is deprecated. glance-wear-tiles is deprecated and will be removed

Public constructors

TimeInterval

Added in 1.0.0-alpha07
Deprecated in 1.0.0-alpha07
TimeInterval(
    start: Instant = Instant.ofEpochMilli(0),
    end: Instant = Instant.ofEpochMilli(Long.MAX_VALUE)
)
Parameters
start: Instant = Instant.ofEpochMilli(0)

The start time of the time interval

end: Instant = Instant.ofEpochMilli(Long.MAX_VALUE)

The end time of the time interval

Public properties

end

Added in 1.0.0-alpha07
Deprecated in 1.0.0-alpha07
val endInstant

The end time of the time interval

start

Added in 1.0.0-alpha07
Deprecated in 1.0.0-alpha07
val startInstant

The start time of the time interval