NepaliDateTime constructor

NepaliDateTime(
  1. int year, [
  2. int month = 1,
  3. int day = 1,
  4. int hour = 0,
  5. int minute = 0,
  6. int second = 0,
  7. int millisecond = 0,
  8. int microsecond = 0,
])

Constructs a NepaliDateTime instance specified.

Implementation

NepaliDateTime(
  this.year, [
  this.month = 1,
  this.day = 1,
  this.hour = 0,
  this.minute = 0,
  this.second = 0,
  this.millisecond = 0,
  this.microsecond = 0,
]) : assert(year >= 1969 && year <= 2100, 'Supported year is 1970-2100');