dayOfYear property

double get dayOfYear

Implementation

double get dayOfYear {
  final diff = difference(DateTime(year, 1, 1, 0, 0));
  final diffInDays = diff.inMilliseconds / 86400000.0;

  return diffInDays;
}