Gregorian constructor

Gregorian(
  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,
])

Create a Gregorian date by using year, month and day

year and month default to 1

Implementation

factory Gregorian(
  final int year, [
  final int month = 1,
  final int day = 1,
  final int hour = 0,
  final int minute = 0,
  final int second = 0,
  final int millisecond = 0,
]) {
  return _Algo.createFromYearMonthDay(
    year,
    month,
    day,
    hour,
    minute,
    second,
    millisecond,
  );
}