TZDateTime.fromMillisecondsSinceEpoch constructor

TZDateTime.fromMillisecondsSinceEpoch(
  1. Location location,
  2. int millisecondsSinceEpoch
)

Constructs a new TZDateTime instance with the given millisecondsSinceEpoch.

The constructed TZDateTime represents 1970-01-01T00:00:00Z + millisecondsSinceEpoch ms in the given time zone location.

Implementation

TZDateTime.fromMillisecondsSinceEpoch(
    Location location, int millisecondsSinceEpoch)
    : this.from(
          DateTime.fromMillisecondsSinceEpoch(millisecondsSinceEpoch,
              isUtc: true),
          location);