millisecondsSinceEpoch property

int millisecondsSinceEpoch

The number of milliseconds since the epoch.

Discord uses a non-standard epoch for their snowflakes. As such, DateTime.fromMillisecondsSinceEpoch will not work with this value. Users should instead use the timestamp getter.

Implementation

int get millisecondsSinceEpoch => value >> 22;