Gregorian.fromMillisecondsSinceEpoch constructor

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

Create a Gregorian date from milliseconds since epoch

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

Implementation

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