toJulian function

num toJulian(
  1. DateTime date
)

Implementation

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