differenceInSeconds method

int differenceInSeconds(
  1. DateTime other
)

Difference in seconds between this date and other

Implementation

int differenceInSeconds(DateTime other) => diff(other).inSeconds;