fromDaysSinceEpoch static method

DateTime fromDaysSinceEpoch(
  1. int days
)

Creates a DateTime, in UTC timezone, from the days since Unix epoch.

Implementation

static DateTime fromDaysSinceEpoch(int days) => DateTime.fromMillisecondsSinceEpoch(days * Duration.millisecondsPerDay, isUtc: true);