Duration (ex_cycle v0.3.0)

This is mainly to create a struct introduces in Elixir v1.17.0 https://github.com/elixir-lang/elixir/blob/main/lib/elixir/lib/calendar/duration.ex

Summary

Types

t()

The duration struct type.

Types

@type t() :: %Duration{
  day: integer(),
  hour: integer(),
  microsecond: {integer(), 0..6},
  minute: integer(),
  month: integer(),
  second: integer(),
  week: integer(),
  year: integer()
}

The duration struct type.