millisecondsSinceEpoch property

int millisecondsSinceEpoch

The number of milliseconds since the 'Unix epoch' 1970-01-01T00:00:00Z (UTC).

This value is independent of the time zone.

This value is at most 8,640,000,000,000,000ms (100,000,000 days) from the Unix epoch. In other words: millisecondsSinceEpoch.abs() <= 8640000000000000.

Implementation

int get millisecondsSinceEpoch => _millisecondsSinceEpoch;
void millisecondsSinceEpoch=(int millisecondsSinceEpoch)

The number of milliseconds since the 'Unix epoch' 1970-01-01T00:00:00Z (UTC).

This value is independent of the time zone.

This value is at most 8,640,000,000,000,000ms (100,000,000 days) from the Unix epoch. In other words: millisecondsSinceEpoch.abs() <= 8640000000000000.

Implementation

set millisecondsSinceEpoch(int millisecondsSinceEpoch) {
  if (millisecondsSinceEpoch.abs() <= 8640000000000000) {
    _internal(DateTime.fromMillisecondsSinceEpoch(millisecondsSinceEpoch));
  }
}