DateTimeIterableExtensions extension

Provides extended methods for DateTime arrays.

DateTimeの配列用の拡張メソッドを提供します。

on

Methods

max() DateTime

Available on Iterable<DateTime>, provided by the DateTimeIterableExtensions extension

Calculates the most recent date in the DateTime list.
min() DateTime

Available on Iterable<DateTime>, provided by the DateTimeIterableExtensions extension

Calculates the oldest date in the DateTime list.
nearestOrNull(DateTime point) DateTime?

Available on Iterable<DateTime>, provided by the DateTimeIterableExtensions extension

Get the closest DateTime to point in the DateTime array.