getDay function

int getDay (
  1. int jyear,
  2. int jmonth,
  3. int jday
)

Implementation

int getDay(int jyear, int jmonth, int jday) {
  List<int> G = jalaliToGregorian(jyear, jmonth, jday);
  DateTime time = DateTime(G[0], G[1], G[2]);
  // print(time.year.toString() +
  //     "-" +
  //     time.month.toString() +
  //     "-" +
  //     time.day.toString());
  var day = time.weekday;
  return day;
}