JDate.fromMicrosecondsSinceEpoch constructor

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

Constructs a new JDate instance with the given microsecondsSinceEpoch.

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

The constructed JDate represents 1348-10-11 00:00:00 + microsecondsSinceEpoch ms in the given time zone (local or UTC).

microsecondsSinceEpoch is completely based on gregorian.

Implementation

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