Skip to content

MonthlyIter

[Source]

Iterator over the fire instants of a MonthlyRecurrence. Each call to next() yields either a fresh ZonedDateTime iso^ or a NextFireError. The error is emitted exactly once, after which has_next() returns false.

class ref MonthlyIter is
  Iterator[(ZonedDateTime iso^ | NextFireError val)] ref

Implements


Constructors

create

[Source]

new ref create(
  r: MonthlyRecurrence val,
  after: ZonedDateTime box)
: MonthlyIter ref^

Parameters

Returns


Public Functions

has_next

[Source]

fun ref has_next()
: Bool val

Returns


next

[Source]

fun ref next()
: (ZonedDateTime iso^ | NextFireError val)

Returns