max method

DateTime max(
  1. DateTime other
)

Returns a later date

Implementation

DateTime max(DateTime other) {
  return (millisecondsSinceEpoch > other.millisecondsSinceEpoch)
      ? this
      : other;
}