Date.fromTimestamp constructor

Date.fromTimestamp(
  1. int msSinceEpoch
)

Creates a Date from an int representing milliseconds since epoch.

Implementation

factory Date.fromTimestamp(int msSinceEpoch) =>
    Date.fromTime(DateTime.fromMillisecondsSinceEpoch(msSinceEpoch));