diffInSeconds method

num diffInSeconds(
  1. DateTime other, {
  2. bool asFloat = false,
})

Implementation

num diffInSeconds(DateTime other, {bool asFloat = false}) {
  return diff(other, unit: TimeUnit.second, asFloat: asFloat);
}