Initializer

init(from:by:)

Creates a periodic update schedule.

Declaration 宣言

init(from startDate: Date, by interval: TimeInterval)

Parameters パラメータ

startDate

The date on which to start the sequence.

interval

The time interval between successive sequence entries.

Discussion 議論

Use the entries(from:mode:) method to get the sequence of dates.