Jalali.fromMillisecondsSinceEpoch constructor

Jalali.fromMillisecondsSinceEpoch(
  1. int milliseconds, {
  2. bool isUtc = false,
})

Create a Jalali date from milliseconds since epoch

If isUtc is false then the date is in the local time zone

Implementation

factory Jalali.fromMillisecondsSinceEpoch(
  int milliseconds, {
  bool isUtc = false,
}) {
  return Jalali.fromDateTime(
    DateTime.fromMillisecondsSinceEpoch(
      milliseconds,
      isUtc: isUtc,
    ),
  );
}