EDateTime.fromMicrosecondsSinceEpoch constructor

EDateTime.fromMicrosecondsSinceEpoch(
  1. int microsecondsSinceEpoch, {
  2. bool isUtc = false,
})

Constructs a new EDateTime instance with the given microsecondsSinceEpoch.

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

The constructed EDateTime represents 1970-01-01T00:00:00Z + microsecondsSinceEpoch us in the given time zone (local or UTC).

Implementation

EDateTime.fromMicrosecondsSinceEpoch(int microsecondsSinceEpoch,
    {bool isUtc = false})
    : _date = DateTime.fromMicrosecondsSinceEpoch(microsecondsSinceEpoch,
          isUtc: isUtc);