num toJulian(DateTime date) { return date.difference(julianEpoch).inSeconds / Duration.secondsPerDay; }