Skip to main content

IntervalInput

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

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

Fields

seconds (Float)

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.

minutes (Int)

A quantity of minutes.

hours (Int)

A quantity of hours.

days (Int)

A quantity of days.

months (Int)

A quantity of months.

years (Int)

A quantity of years.