getSpringEquinoxData static method

DateTime getSpringEquinoxData(
  1. DateTime dt
)

Implementation

static DateTime getSpringEquinoxData(DateTime dt) {
  int year = dt.year % 100;
  int val1 = (year * 0.2422 + 20.646).floor();
  int ss = val1 - (year / 4).floor();
  return DateTime(dt.year, 3, ss);
}