Day.fromDateTime constructor

Day.fromDateTime(
  1. DateTime time
)

Constructs a new Day from a DateTime instance.

Example:

final d = Day.fromDateTime(DateTime.now());

Implementation

Day.fromDateTime(DateTime time) {
  _initTime(time);
}