MJD_UT1 top-level property
Modified Julian Date in the UT1 scale
Implementation
// ignore: non_constant_identifier_names
final TimeInstantUnits MJD_UT1 =
TimeInstantUnits('Modified Julian Date (UT1)', null, 'MJD(UT1)', null, 86400.0, false, -36204.0, (dynamic val) {
final jd = JD_UT1.fromMks(val);
return jd - 2400000.5;
}, (dynamic val) {
var d = val is num
? val.toDouble()
: val is Number
? val.toDouble()
: 0.0;
d += 2400000.5; // convert MJD(UTC) to JD(UTC)
return JD_UT1.toMks(d);
});