previousDay static method

DateTime previousDay(
  1. DateTime d
)

Returns same time in the previous day.

Implementation

static DateTime previousDay(DateTime d) {
  return copyWith(d, day: d.day - 1);
}