toEpochSeconds method

int? toEpochSeconds()

Converts the date to epoch seconds.

Implementation

int? toEpochSeconds() =>
    this == null ? null : (this!.millisecondsSinceEpoch ~/ 1000);