DateTime.fromMillisecondsSinceEpoch constructor

DateTime.fromMillisecondsSinceEpoch(int millisecondsSinceEpoch, { bool isUtc: false })

Constructs a new DateTime instance with the given millisecondsSinceEpoch.

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

The constructed DateTime represents 1970-01-01T00:00:00Z + millisecondsSinceEpoch ms in the given time zone (local or UTC).

Source

external DateTime.fromMillisecondsSinceEpoch(int millisecondsSinceEpoch,
    {bool isUtc: false});

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-core/DateTime/DateTime.fromMillisecondsSinceEpoch.html