dateTimeFromPage static method

DateTime dateTimeFromPage(
  1. double page
)

Will always return UTC DateTimes

Implementation

static DateTime dateTimeFromPage(double page) {
  return DateTime.fromMillisecondsSinceEpoch(
    (page * Duration.millisecondsPerDay).toInt(),
    // This has to be in utc, because the timetable package works only in utc
    isUtc: true,
  ).asLocal;
}