secondsFrom method

int secondsFrom(
  1. DateTime dateTime
)

Returns the difference in seconds from another dateTime.

Implementation

int secondsFrom(DateTime dateTime) {
  return dateTime.difference(this).inSeconds;
}