isValidSecond static method

bool isValidSecond(
  1. int second
)

Validates if a second is valid (0-59)

Returns true if the second is valid, false otherwise

Implementation

static bool isValidSecond(int second) {
  return second >= 0 && second <= 59;
}