TruncateToDateTimeExtension extension

on

Methods

truncateTo(TimeUnit unit, {int startWeekday = DateTime.monday}) DateTime

Available on DateTime, provided by the TruncateToDateTimeExtension extension

Truncates DateTime to the beginning of the provided TimeUnit.