Gregorian.fromJulianDayNumber constructor

Gregorian.fromJulianDayNumber(
  1. int julianDayNumber, [
  2. int hour = 0,
  3. int minute = 0,
  4. int second = 0,
  5. int millisecond = 0,
])

Calculates Gregorian and Julian calendar dates from the Julian Day number julianDayNumber for the period since jdn=-34839655 (i.e. the year -100100 of both calendars) to some millions years ahead of the present.

Implementation

factory Gregorian.fromJulianDayNumber(
  final int julianDayNumber, [
  final int hour = 0,
  final int minute = 0,
  final int second = 0,
  final int millisecond = 0,
]) {
  return _Algo.createFromJulianDayNumber(
    julianDayNumber,
    hour,
    minute,
    second,
    millisecond,
  );
}