JD_TDB top-level property

TimeInstantUnits JD_TDB
final

Julian Date in the TDB (TB) scale

Implementation

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