floorToSecond method

DateTime floorToSecond()

Implementation

DateTime floorToSecond() {
  return DateTime.fromMillisecondsSinceEpoch(
    (millisecondsSinceEpoch ~/ 1000) * 1000,
  );
}