floor method

T floor(
  1. int value,
  2. TimeUnit unit
)

Floors this DateTime to the nearest value.

Implementation

T floor(int value, TimeUnit unit) => _adjust(value, unit, math.floor);