Jalali.fromDateTime constructor

Jalali.fromDateTime(
  1. DateTime dateTime
)

Create a Jalali date by using DateTime object

Implementation

factory Jalali.fromDateTime(DateTime dateTime) {
  return Gregorian.fromDateTime(dateTime).toJalali();
}