JD_TCB top-level property

TimeInstantUnits JD_TCB
final

Julian Date in the TCB scale

Implementation

// ignore: non_constant_identifier_names
final TimeInstantUnits JD_TCB = TimeInstantUnits('Julian Date (TCB)', null, 'JD(TCB)', null, 86400.0, false, -2436204.5,
    (dynamic val) => (TCB.fromMks(val) / 86400.0) + 2436204.5, (dynamic val) {
  var d = val is num
      ? val.toDouble()
      : val is Number
          ? val.toDouble()
          : 0.0;
  d -= 2436204.5;
  return TCB.toMks(d * 86400.0);
});