DateMonth.dateTime constructor

DateMonth.dateTime(
  1. DateTime time
)

Implementation

DateMonth.dateTime(DateTime time) {
  this._time = DateTime.utc(time.year, time.month, time.day);
  _year = this.time.year;
  _month = this.time.month;
  _maxDays = DateTime(this.time.year, this.time.month + 1, 1)
      .add(Duration(days: -1))
      .day;
}