Skip to main content

Interval

An interval of time that has passed where the smallest distinct unit is a second.

type Interval {
seconds: Float
minutes: Int
hours: Int
days: Int
months: Int
years: Int
}

Fields

Interval.seconds ● Float scalar

A quantity of seconds. This is the only non-integer field, as all the other fields will dump their overflow into a smaller unit of time. Intervals don’t have a smaller unit than seconds.

Interval.minutes ● Int scalar

A quantity of minutes.

Interval.hours ● Int scalar

A quantity of hours.

Interval.days ● Int scalar

A quantity of days.

Interval.months ● Int scalar

A quantity of months.

Interval.years ● Int scalar

A quantity of years.

Member Of

Step object