DateRange

data class DateRange(val from: Date, val to: Date) : Serializable

A date window used to narrow a content search down to what was released inside it — see co.cafeyn.cgs.api.content.Issues.all.

Both bounds are inclusive, and both are absolute instants. Release dates are compared in UTC, so ofYear builds its bounds in UTC too rather than in the device's time zone: a device in UTC+2 asking for 2026 gets exactly the issues filed under 2026, not a window shifted two hours off it.

Parameters

from

start of the window, inclusive

to

end of the window, inclusive

Constructors

Link copied to clipboard
constructor(from: Date, to: Date)

Types

Link copied to clipboard
object Companion

Ready-made windows.

Properties

Link copied to clipboard
val from: Date
Link copied to clipboard
val to: Date