   // years since 1970.
   rtc.setDateTime(day, month, year - 1970, hour, minute, second);
 
+  Serial.println("RTC time set to: " + rtc.readDateTimeAsText());
   Serial.println();
-  Serial.println("RTC time set to: " + rtc.readDateTimeAsText());
+
 }

//
void doReadDateTime()
{
  Serial.println();
  Serial.println("RTC time is: " + rtc.readDateTimeAsText());
}

// Asks user to input date/time via Serial.


void doShowMenu()
{
  Serial.println("RTC Tester");
  Serial.println("----------");
  Serial.println("m: Show menu");
  Serial.println("r: Reads current date/time from RTC");
  Serial.println("f: Displays expected date/time format");
  Serial.println("s: Enters mode for setting date/time");
  Serial.println();
}

// Shows expected format for setting date/time.
void doShowDateTimeFormat()
{
  Serial.println("Date Time Format");
  Serial.println("----------------");
  Serial.println("General format: year-month-day hour:minute:second");
  Serial.println("Example format: 2014-01-12 01:05:23");
  Serial.println();
}

// Displays date/time in UNIX timestamp format.
