JD_TCG top-level property

TimeInstantUnits JD_TCG
final

Julian Date in the TCG scale

Implementation

// ignore: non_constant_identifier_names
final TimeInstantUnits JD_TCG =
    TimeInstantUnits('Julian Date (TCG)', null, 'JD(TCG)', null, 86400.0, false, -2436204.5, (dynamic val) {
  final d = val is num
      ? val.toDouble()
      : val is Number
          ? val.toDouble()
          : 0.0;
  return (TCG.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 TCG.toMks(d * 86400.0);
});